mirror of https://github.com/laurent22/joplin.git
Server: Rename admin button "Send reset password email" to more correct "Send account information email"
parent
c91d4bda3c
commit
37d446b970
|
@ -265,7 +265,7 @@ interface FormFields {
|
||||||
disable_button: string;
|
disable_button: string;
|
||||||
restore_button: string;
|
restore_button: string;
|
||||||
cancel_subscription_button: string;
|
cancel_subscription_button: string;
|
||||||
send_reset_password_email: string;
|
send_account_confirmation_email: string;
|
||||||
update_subscription_basic_button: string;
|
update_subscription_basic_button: string;
|
||||||
update_subscription_pro_button: string;
|
update_subscription_pro_button: string;
|
||||||
user_cancel_subscription_button: string;
|
user_cancel_subscription_button: string;
|
||||||
|
@ -306,7 +306,7 @@ router.post('users', async (path: SubPath, ctx: AppContext) => {
|
||||||
const user = await models.user().load(path.id);
|
const user = await models.user().load(path.id);
|
||||||
await models.user().checkIfAllowed(ctx.joplin.owner, AclAction.Delete, user);
|
await models.user().checkIfAllowed(ctx.joplin.owner, AclAction.Delete, user);
|
||||||
await models.userFlag().toggle(user.id, UserFlagType.ManuallyDisabled, !fields.restore_button);
|
await models.userFlag().toggle(user.id, UserFlagType.ManuallyDisabled, !fields.restore_button);
|
||||||
} else if (fields.send_reset_password_email) {
|
} else if (fields.send_account_confirmation_email) {
|
||||||
const user = await models.user().load(path.id);
|
const user = await models.user().load(path.id);
|
||||||
await models.user().save({ id: user.id, must_set_password: 1 });
|
await models.user().save({ id: user.id, must_set_password: 1 });
|
||||||
await models.user().sendAccountConfirmationEmail(user);
|
await models.user().sendAccountConfirmationEmail(user);
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<div class="control block">
|
<div class="control block">
|
||||||
<input type="submit" name="post_button" class="button is-primary" value="{{buttonTitle}}" />
|
<input type="submit" name="post_button" class="button is-primary" value="{{buttonTitle}}" />
|
||||||
{{#showResetPasswordButton}}
|
{{#showResetPasswordButton}}
|
||||||
<input type="submit" name="send_reset_password_email" class="button is-warning" value="Send reset password email" />
|
<input type="submit" name="send_account_confirmation_email" class="button is-warning" value="Send account confirmation email" />
|
||||||
{{/showResetPasswordButton}}
|
{{/showResetPasswordButton}}
|
||||||
{{#showDisableButton}}
|
{{#showDisableButton}}
|
||||||
<input type="submit" name="disable_button" class="button is-danger" value="Disable" />
|
<input type="submit" name="disable_button" class="button is-danger" value="Disable" />
|
||||||
|
|
Loading…
Reference in New Issue