mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
88f5bb8368
commit
18e413d15a
@ -67,6 +67,24 @@ class UserForm extends RepositoryForm
|
||||
$this->setSubmitLabel($this->translate('Save'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a user
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
protected function onUpdateSuccess()
|
||||
{
|
||||
if (parent::onUpdateSuccess()) {
|
||||
if (($newName = $this->getValue('user_name')) !== $this->getIdentifier()) {
|
||||
$this->getRedirectUrl()->setParam('user', $newName);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve all form element values
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user