Skip to content

Commit

Permalink
Merge pull request #867 from NASA-IMPACT/866-minor-frontend-fixes
Browse files Browse the repository at this point in the history
Remove rogue sign up links
  • Loading branch information
code-geek authored Jun 19, 2024
2 parents 538b9a4 + 32109b1 commit 668aae2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions sde_indexing_helper/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ <h4 class="card-title login-title">Login To Your Account</h4>
<button class="login-button" type="submit">{% translate "Log In" %}</button>
</form>
<div class="login-links">
{# URL provided by django-allauth/account/urls.py #}
<a href="{% url 'account_signup' %}" class="signin">Sign Up</a>
{% if ACCOUNT_ALLOW_REGISTRATION %}
<a href="{% url 'account_signup' %}" class="signin">Sign Up</a>
{% endif %}
<a href="{% url 'account_reset_password' %}">Forgot Password?</a>
</div>
</div>
Expand Down
8 changes: 5 additions & 3 deletions sde_indexing_helper/templates/account/password_reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<div class="login-card-wrapper">
<div class="card login-card">
<div class="title-wrapper">
<h4 class="card-title login-title">Forgot Password</h4>
<p>Please enter your Email address used during sign up.</p>
<h4 class="card-title login-title">Forgot Password?</h4>
<p>Please enter your email address below.</p>
</div>
<div >
<form method="POST" action="{% url 'account_login' %}" class="password_reset">
Expand All @@ -22,7 +22,9 @@ <h4 class="card-title login-title">Forgot Password</h4>
<input class="login-button" type="submit" value="{% translate 'Reset My Password' %}" />
</form>
<div class="login-links">
<p><a href="{% url 'account_signup' %}" class="signin">Sign Up</a></p>
{% if ACCOUNT_ALLOW_REGISTRATION %}
<p><a href="{% url 'account_signup' %}" class="signin">Sign Up</a></p>
{% endif %}
<p>{% blocktranslate %}<a href="{{ login_url }}">Login</a>{% endblocktranslate %}</p>
</div>
</div>
Expand Down

0 comments on commit 668aae2

Please sign in to comment.