Auth token for users
This commit is contained in:
parent
967cbb5179
commit
6fba1fd005
|
@ -8,6 +8,7 @@ function setPassword($username, $new_password, $confirm_password)
|
|||
{
|
||||
global $dbUsers;
|
||||
global $Language;
|
||||
global $Syslog;
|
||||
|
||||
// Password length
|
||||
if( strlen($new_password) < 6 )
|
||||
|
@ -20,6 +21,11 @@ function setPassword($username, $new_password, $confirm_password)
|
|||
{
|
||||
if( $dbUsers->setPassword($username, $new_password) ) {
|
||||
Alert::set($Language->g('The changes have been saved'), ALERT_STATUS_OK);
|
||||
// Add to syslog
|
||||
$Syslog->add(array(
|
||||
'dictionaryKey'=>'user-password-changed',
|
||||
'notes'=>$username
|
||||
));
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -264,7 +264,9 @@
|
|||
"new-page-created": "New page created",
|
||||
"page-deleted": "Page deleted",
|
||||
"page-edited": "Page edited",
|
||||
"user-edited": "User edited",
|
||||
"changes-on-settings": "Changes on settings",
|
||||
"plugin-installed": "Plugin installed"
|
||||
"plugin-installed": "Plugin installed",
|
||||
"user-password-changed": "User password changed"
|
||||
|
||||
}
|
Loading…
Reference in New Issue