mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
fix user password send
This commit is contained in:
@@ -246,6 +246,8 @@ class User extends Record implements
|
||||
|
||||
parent::prepareEntityForOutput($entity);
|
||||
|
||||
$entity->clear('sendAccessInfo');
|
||||
|
||||
if ($entity->isApi()) {
|
||||
if ($this->user->isAdmin()) {
|
||||
if ($entity->getAuthMethod() === Hmac::NAME) {
|
||||
|
||||
@@ -320,6 +320,14 @@ class UserEditRecordView extends EditRecordView {
|
||||
return data;
|
||||
}
|
||||
|
||||
exit(after) {
|
||||
if (after === 'create') {
|
||||
this.model.unset('sendAccessInfo', {silent: true});
|
||||
}
|
||||
|
||||
super.exit(after);
|
||||
}
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
errorHandlerUserNameExists() {
|
||||
Espo.Ui.error(this.translate('userNameExists', 'messages', 'User'))
|
||||
|
||||
Reference in New Issue
Block a user