mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-05 09:51:40 -05:00
More standards compliant.
This commit is contained in:
parent
1d014e5150
commit
4f44171cad
3 changed files with 3 additions and 9 deletions
|
@ -1,8 +1,5 @@
|
|||
T9n.map('en', {
|
||||
cancel: 'Cancel',
|
||||
error: {
|
||||
pwTooShort: 'Password to short'
|
||||
},
|
||||
'Enter password': 'Enter password',
|
||||
'Enter newPassword': 'Enter new password',
|
||||
'Enter email': 'Enter email',
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
T9n.map('sv', {
|
||||
cancel: 'Avbryt',
|
||||
error: {
|
||||
pwTooShort: 'Lösenordet är för kort'
|
||||
},
|
||||
'Enter password': 'Mata in lösenord',
|
||||
'Enter newPassword': 'Mata in nytt lösenord',
|
||||
'Enter email': 'Mata in e-post',
|
||||
|
|
|
@ -74,7 +74,7 @@ export class LoginForm extends Tracker.Component {
|
|||
return true;
|
||||
}
|
||||
else {
|
||||
this.showMessage(T9n.get("error.emailInvalid"));
|
||||
this.showMessage(T9n.get("error.accounts.Invalid email"));
|
||||
if (formState == STATES.SIGN_UP) {
|
||||
Accounts.ui._options.onSubmitHook("error.emailInvalid", formState);
|
||||
}
|
||||
|
@ -437,8 +437,8 @@ export class LoginForm extends Tracker.Component {
|
|||
options.password = Meteor.uuid();
|
||||
}
|
||||
else if (!validatePassword(password)) {
|
||||
this.showMessage(T9n.get("error.pwTooShort"));
|
||||
Accounts.ui._options.onSubmitHook("error.pwTooShort", formState);
|
||||
this.showMessage(T9n.get("error.minChar"));
|
||||
Accounts.ui._options.onSubmitHook("error.minChar", formState);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue