mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Allow cancelling the reset password dialog
This commit is contained in:
@@ -134,9 +134,13 @@
|
||||
|
||||
{{> loginButtonsMessages}}
|
||||
|
||||
<div class="login-button login-button-form-submit" id="reset-password-button">
|
||||
<div class="login-button login-button-form-submit" id="login-buttons-reset-password-button">
|
||||
Reset password
|
||||
</div>
|
||||
|
||||
<a class="additional-link" id="login-buttons-cancel-reset-password">
|
||||
Cancel
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</template>
|
||||
|
||||
@@ -223,12 +223,16 @@
|
||||
//
|
||||
|
||||
Template.resetPasswordForm.events = {
|
||||
'click #reset-password-button': function () {
|
||||
'click #login-buttons-reset-password-button': function () {
|
||||
resetPassword();
|
||||
},
|
||||
'keypress #reset-password-new-password': function (event) {
|
||||
'keypress #login-buttons-reset-password-new-password': function (event) {
|
||||
if (event.keyCode === 13)
|
||||
resetPassword();
|
||||
},
|
||||
'click #login-buttons-cancel-reset-password': function () {
|
||||
Session.set(RESET_PASSWORD_TOKEN_KEY, null);
|
||||
Meteor.accounts._preventAutoLogin = false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#login-buttons a {
|
||||
#login-buttons a, .accounts-dialog a {
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -157,10 +157,14 @@
|
||||
color: green;
|
||||
}
|
||||
|
||||
#login-buttons .additional-link {
|
||||
.accounts-dialog .additional-link {
|
||||
font-size: 60%;
|
||||
}
|
||||
|
||||
.accounts-dialog #login-buttons-cancel-reset-password {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#login-buttons #signup-link {
|
||||
float: right;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user