1
0
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:
杨顺强 2020-09-17 14:48:29 +08:00 committed by GitHub
parent dafd66b18d
commit aea4e3c042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
});