We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dffc33 commit 7254e23Copy full SHA for 7254e23
app/controllers/register.js
@@ -31,6 +31,8 @@ export default class RegisterController extends Controller {
31
.catch(reason => {
32
if (reason && Object.prototype.hasOwnProperty.call(reason, 'errors') && reason.errors[0].status === 409) {
33
this.set('errorMessage', this.l10n.t('User already exists.'));
34
+ } else if (reason?.errors[0]?.status === '422') {
35
+ this.set('errorMessage', this.l10n.t('Invalid email address.'));
36
} else {
37
this.set('errorMessage', this.l10n.t('An unexpected error occurred.'));
38
}
0 commit comments