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