mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 07:47:32 +00:00
update copyright (#4672)
This commit is contained in:
parent
dafd66b18d
commit
aea4e3c042
@ -55,13 +55,13 @@ class UserItem extends React.Component {
|
||||
}
|
||||
|
||||
toggleResetPW = () => {
|
||||
const email = this.props.user.email;
|
||||
const { email, name } = this.props.user;
|
||||
toaster.success(gettext('Resetting user\'s password, please wait for a moment.'));
|
||||
seafileAPI.orgAdminResetOrgUserPassword(orgID, email).then(res => {
|
||||
let msg;
|
||||
msg = gettext('Successfully reset password to %(passwd)s for user %(user)s.');
|
||||
msg = msg.replace('%(passwd)s', res.data.new_password);
|
||||
msg = msg.replace('%(user)s', email);
|
||||
msg = msg.replace('%(user)s', name);
|
||||
toaster.success(msg, {
|
||||
duration: 15
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user