Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Change registration message when user need to confirm email #9336

Merged
merged 12 commits into from
Nov 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/rocketchat-ui-login/client/login/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
{{#if state 'wait-activation'}}
<header>
<h2 data-i18n="Registration_Succeeded">{{{_ "Registration_Succeeded"}}}</h2>
<p>{{{_ "Wait_activation_warning"}}}</p>
<p>{{{_ "Please_wait_activation"}}}</p>
<p>{{_ "Wait_activation_warning"}}</p>
<p>{{_ "Please_wait_activation"}}</p>
</header>
{{else if state 'wait-email-activation'}}
<header>
<h2 data-i18n="Registration_Succeeded">{{{_ "Registration_Succeeded"}}}</h2>
<p>{{_ "We_have_sent_registration_email"}}</p>
</header>
{{else}}
{{> loginServices }}
Expand Down
3 changes: 1 addition & 2 deletions packages/rocketchat-ui-login/client/login/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ Template.loginForm.events({
RocketChat.callbacks.run('userRegistered');
return Meteor.loginWithPassword(s.trim(formData.email), formData.pass, function(error) {
if (error && error.error === 'error-invalid-email') {
toastr.success(t('We_have_sent_registration_email'));
return instance.state.set('login');
return instance.state.set('wait-email-activation');
} else if (error && error.error === 'error-user-is-not-activated') {
return instance.state.set('wait-activation');
} else {
Expand Down
5 changes: 5 additions & 0 deletions packages/rocketchat_theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -4666,6 +4666,11 @@ body:not(.is-cordova) {
& .logo {
display: block;

width: 100%;
max-width: 520px;
margin: 0 auto;
padding: 0 20px;

& > img {
position: relative;
z-index: 20;
Expand Down