Skip to content

[FIX] Email verification message and navigation to login portal#1567

Closed
m1-key wants to merge 3 commits intoRocketChat:developfrom
m1-key:emailVerification
Closed

[FIX] Email verification message and navigation to login portal#1567
m1-key wants to merge 3 commits intoRocketChat:developfrom
m1-key:emailVerification

Conversation

@m1-key
Copy link

@m1-key m1-key commented Jan 12, 2020

@RocketChat/ReactNative

Closes #1548

In this I have created an Alert Screen , which pop up when a user press the register button ( when he/she is registering through Create an account option, not by any pre-described methods like Continue via Google, GitHub etc. ) . On that alert screen Congrats will be written for registering on Rocket Chat and then there will be a message Verify your email and a close button. Now user will have information that they have to verify their email which was not mentioned earlier. And on pressing the close button, user will be redirected to LoginView i.e Login Portal, where after successfully verifying the mail , user can login.

I have removed the login request prop, so user will only be able to login once the email is verified.

Login via Google , GitHub etc issue is resolved the pull request I made in #1544 , so if both the pull requests are merged then whole register issue will be resolved. i.e
When we register via google, github then on pressing the register button , we will be redirected to Room List (#1544 ) and when we choose Create an Account and press register button then we will be redirected to login portal and message will be displayed which will say to verify the email.

Here is view of that.

ESe_Hf

One thing more is that I have provided the message 'Congrats' and 'Verify your email' in all the languages supported by the app.

@m1-key m1-key changed the title added a message which says to verify email and added navigation to lo… [FIX] Email verification message and navigation to login portal Jan 12, 2020
Username: '用户名',
Username_or_email: '用户名或邮箱',
Validating: '正在验证',
Verify_your_email: '验证您的电子邮件',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't know the language, you shouldn't use Google Translate.

name, email, pass: password, username, ...customFields
});
await loginRequest({ user: email, password });
const { navigation } = this.props;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a setting on the server enforcing email verification.
You should do this only if that setting is enabled.

@diegolmello
Copy link
Member

Will be fixed by #1725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No message is displayed to verify the email-id

2 participants