mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
parent
88f5bb8368
commit
18e413d15a
@ -67,6 +67,24 @@ class UserForm extends RepositoryForm
|
|||||||
$this->setSubmitLabel($this->translate('Save'));
|
$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
|
* Retrieve all form element values
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user