Show More
@@ -62,9 +62,14 b'' | |||
|
62 | 62 | </p> |
|
63 | 63 | %elif h.HasPermissionAny('hg.password_reset.hidden')(): |
|
64 | 64 | <p class="help-block"> |
|
65 | ${_('Contact an administrator if you have forgotten your password.')} | |
|
65 | ${_('Password reset is disabled. Please contact ')} | |
|
66 | % if c.visual.rhodecode_support_url: | |
|
67 | <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support')}</a> | |
|
68 | ${_('or')} | |
|
69 | % endif | |
|
70 | ${_('an administrator if you need help.')} | |
|
66 | 71 | </p> |
|
67 | %endif | |
|
72 | %endif | |
|
68 | 73 | |
|
69 | 74 | |
|
70 | 75 | ${h.submit('sign_in', _('Sign In'), class_="btn sign-in")} |
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | <%inherit file="base/root.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | ${_('Create an Account')} | |
|
5 | ${_('Reset Password')} | |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
@@ -30,7 +30,14 b'' | |||
|
30 | 30 | |
|
31 | 31 | %if h.HasPermissionAny('hg.password_reset.disabled')(): |
|
32 | 32 | <div class="right-column"> |
|
33 | <p>${_('Password reset has been disabled.')}</p> | |
|
33 | <p> | |
|
34 | ${_('Password reset is disabled. Please contact ')} | |
|
35 | % if c.visual.rhodecode_support_url: | |
|
36 | <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support')}</a> | |
|
37 | ${_('or')} | |
|
38 | % endif | |
|
39 | ${_('an administrator if you need help.')} | |
|
40 | </p> | |
|
34 | 41 | </div> |
|
35 | 42 | %else: |
|
36 | 43 | <div id="register" class="right-column"> |
@@ -564,7 +564,7 b' class TestPasswordReset(TestController):' | |||
|
564 | 564 | asr_reset.one_element_exists('#email') |
|
565 | 565 | asr_reset.one_element_exists('#send') |
|
566 | 566 | else: |
|
567 |
assert 'Password reset |
|
|
567 | assert 'Password reset is disabled.' in pwdreset_page | |
|
568 | 568 | asr_reset.no_element_exists('#email') |
|
569 | 569 | asr_reset.no_element_exists('#send') |
|
570 | 570 | |
@@ -585,4 +585,4 b' class TestPasswordReset(TestController):' | |||
|
585 | 585 | pwd_reset_url, |
|
586 | 586 | {'email': 'lisa@rhodecode.com',} |
|
587 | 587 | ) |
|
588 |
assert 'Password reset |
|
|
588 | assert 'Password reset is disabled.' in pwdreset_page |
General Comments 0
You need to be logged in to leave comments.
Login now