mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
frontend: Edit confirm_continue_registration.html to be clearer.
Fixes #5707.
This commit is contained in:
committed by
Tim Abbott
parent
eb001e42d0
commit
02d65a67af
@@ -125,13 +125,28 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-main.confirm-continue-page-container {
|
.app-main.confirm-continue-page-container {
|
||||||
width: 600px;
|
width: 400px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-main.confirm-continue-page-container .form-inline {
|
.app-main.confirm-continue-page-container .form-inline {
|
||||||
width: 320px;
|
display: inline-block;
|
||||||
margin: auto;
|
width: 180px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-main.confirm-continue-page-container .form-inline .outline {
|
||||||
|
border: 2px inset hsl(213, 23%, 25%);
|
||||||
|
background-color: hsl(0, 0%, 100%);
|
||||||
|
color: hsl(213, 23%, 25%);
|
||||||
|
padding: 13px 20px 11px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-main.confirm-continue-page-container .form-inline .outline:hover {
|
||||||
|
background-color: hsl(213, 65%, 97%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-main.confirm-continue-page-container p {
|
||||||
|
font-size: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.find-team-page-container h3,
|
.find-team-page-container h3,
|
||||||
@@ -183,6 +198,7 @@ html {
|
|||||||
|
|
||||||
.register-form.new-style {
|
.register-form.new-style {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
color: hsl(0, 0%, 45%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-form #errors {
|
.register-form #errors {
|
||||||
|
|||||||
@@ -654,6 +654,10 @@ a.bottom-signup-button {
|
|||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.register-page-header {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.login-page-header {
|
.login-page-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,14 +23,22 @@
|
|||||||
<p>
|
<p>
|
||||||
{% trans %}
|
{% trans %}
|
||||||
|
|
||||||
You attempted to login using the email account
|
No account found for {{ email }}. Would you like to register instead?
|
||||||
{{ email }}, but this email address does not
|
|
||||||
have a Zulip account in this organization. If
|
|
||||||
you'd like, you can try to register a new
|
|
||||||
Zulip account with this email address.
|
|
||||||
|
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
</p>
|
</p>
|
||||||
|
<div style="text-align: left;">
|
||||||
|
<form class="form-inline" id="send_confirm" name="send_confirm"
|
||||||
|
action="/login/" method="post">
|
||||||
|
{{ csrf_input }}
|
||||||
|
<input type="hidden"
|
||||||
|
id="email"
|
||||||
|
name="email"
|
||||||
|
value="{{ email }}" />
|
||||||
|
<button>
|
||||||
|
{{ _("Go back to login") }}
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
{# TODO: Ideally, this should use whatever auth #}
|
{# TODO: Ideally, this should use whatever auth #}
|
||||||
{# method the user had used to get here, not just #}
|
{# method the user had used to get here, not just #}
|
||||||
{# send an email. #}
|
{# send an email. #}
|
||||||
@@ -41,10 +49,11 @@
|
|||||||
id="email"
|
id="email"
|
||||||
name="email"
|
name="email"
|
||||||
value="{{ email }}" />
|
value="{{ email }}" />
|
||||||
<button class="full-width">
|
<button class="outline">
|
||||||
{{ _("Continue to registration?") }}
|
{{ _("Register instead") }}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -668,9 +668,9 @@ class GitHubAuthBackendTest(ZulipTestCase):
|
|||||||
result = self.backend.do_auth(response=response)
|
result = self.backend.do_auth(response=response)
|
||||||
self.assert_in_response(
|
self.assert_in_response(
|
||||||
'action="/register/"', result)
|
'action="/register/"', result)
|
||||||
self.assert_in_response('You attempted to login using the email account',
|
self.assert_in_response('No account found for',
|
||||||
result)
|
result)
|
||||||
self.assert_in_response('nonexisting@phantom.com, but this email address does not',
|
self.assert_in_response('nonexisting@phantom.com. Would you like to register instead?',
|
||||||
result)
|
result)
|
||||||
|
|
||||||
def test_login_url(self):
|
def test_login_url(self):
|
||||||
@@ -984,9 +984,9 @@ class GoogleSubdomainLoginTest(GoogleOAuthTest):
|
|||||||
self.assertEqual(uri, 'http://zulip.testserver/accounts/login/subdomain/')
|
self.assertEqual(uri, 'http://zulip.testserver/accounts/login/subdomain/')
|
||||||
|
|
||||||
result = self.client_get(result.url)
|
result = self.client_get(result.url)
|
||||||
self.assert_in_response('You attempted to login using the email account',
|
self.assert_in_response('No account found for',
|
||||||
result)
|
result)
|
||||||
self.assert_in_response('newuser@zulip.com, but this email address does not',
|
self.assert_in_response('newuser@zulip.com. Would you like to register instead?',
|
||||||
result)
|
result)
|
||||||
# Click confirm registration button.
|
# Click confirm registration button.
|
||||||
result = self.client_post('/register/',
|
result = self.client_post('/register/',
|
||||||
@@ -1031,9 +1031,9 @@ class GoogleLoginTest(GoogleOAuthTest):
|
|||||||
value=email)])
|
value=email)])
|
||||||
account_response = ResponseMock(200, account_data)
|
account_response = ResponseMock(200, account_data)
|
||||||
result = self.google_oauth2_test(token_response, account_response)
|
result = self.google_oauth2_test(token_response, account_response)
|
||||||
self.assert_in_response('You attempted to login using the email account',
|
self.assert_in_response('No account found for',
|
||||||
result)
|
result)
|
||||||
self.assert_in_response('newuser@zulip.com, but this email address does not',
|
self.assert_in_response('newuser@zulip.com. Would you like to register instead?',
|
||||||
result)
|
result)
|
||||||
# Click confirm registration button.
|
# Click confirm registration button.
|
||||||
result = self.client_post('/register/',
|
result = self.client_post('/register/',
|
||||||
@@ -1560,7 +1560,7 @@ class TestZulipRemoteUserBackend(ZulipTestCase):
|
|||||||
result = self.client_post('/accounts/login/sso/', REMOTE_USER=email)
|
result = self.client_post('/accounts/login/sso/', REMOTE_USER=email)
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
self.assertIs(get_session_dict_user(self.client.session), None)
|
self.assertIs(get_session_dict_user(self.client.session), None)
|
||||||
self.assert_in_response("You attempted to login using", result)
|
self.assert_in_response("No account found for", result)
|
||||||
|
|
||||||
def test_login_failure_due_to_invalid_email(self):
|
def test_login_failure_due_to_invalid_email(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
@@ -1585,7 +1585,7 @@ class TestZulipRemoteUserBackend(ZulipTestCase):
|
|||||||
REMOTE_USER=email)
|
REMOTE_USER=email)
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
self.assertIs(get_session_dict_user(self.client.session), None)
|
self.assertIs(get_session_dict_user(self.client.session), None)
|
||||||
self.assert_in_response("You attempted to login using", result)
|
self.assert_in_response("No account found for", result)
|
||||||
|
|
||||||
def test_login_failure_due_to_empty_subdomain(self):
|
def test_login_failure_due_to_empty_subdomain(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
@@ -1597,7 +1597,7 @@ class TestZulipRemoteUserBackend(ZulipTestCase):
|
|||||||
REMOTE_USER=email)
|
REMOTE_USER=email)
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
self.assertIs(get_session_dict_user(self.client.session), None)
|
self.assertIs(get_session_dict_user(self.client.session), None)
|
||||||
self.assert_in_response("You attempted to login using", result)
|
self.assert_in_response("No account found for", result)
|
||||||
|
|
||||||
def test_login_success_under_subdomains(self):
|
def test_login_success_under_subdomains(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
|
|||||||
@@ -1826,9 +1826,9 @@ class LoginOrAskForRegistrationTestCase(ZulipTestCase):
|
|||||||
user_profile,
|
user_profile,
|
||||||
full_name=full_name,
|
full_name=full_name,
|
||||||
invalid_subdomain=invalid_subdomain)
|
invalid_subdomain=invalid_subdomain)
|
||||||
self.assert_in_response('You attempted to login using the email account',
|
self.assert_in_response('No account found for',
|
||||||
result)
|
result)
|
||||||
self.assert_in_response('new@zulip.com, but this email address does not',
|
self.assert_in_response('new@zulip.com. Would you like to register instead?',
|
||||||
result)
|
result)
|
||||||
|
|
||||||
def test_invalid_subdomain(self):
|
def test_invalid_subdomain(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user