mirror of https://github.com/MISP/MISP
fix: [user creation] Don't create an advanced authkey by default when creating a new user
- nobody will see the initial key, users can always create API keys for themselvespull/7984/head
parent
96f6b5cd4d
commit
606962b21b
|
@ -741,7 +741,7 @@ class UsersController extends AppController
|
|||
$notification_message .= ' ' . __('User notification of new credentials could not be send.');
|
||||
}
|
||||
}
|
||||
if (!empty(Configure::read('Security.advanced_authkeys'))) {
|
||||
if (!empty(Configure::read('Security.advanced_authkeys')) && $this->_isRest()) {
|
||||
$this->loadModel('AuthKey');
|
||||
$newKey = $this->AuthKey->createnewkey($this->User->id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue