Skip to content

Commit

Permalink
add fixes proposed by @mreid-tt
Browse files Browse the repository at this point in the history
- remove duplicate link to recover email
- handle invalid navigation to package without versions
  • Loading branch information
hgy59 committed Jan 8, 2024
1 parent 0ce2d02 commit 5bce172
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion spkrepo/templates/security/login_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
{% block content %}
<h1>Login</h1>
{{ wtf.quick_form(login_user_form, field_order=['email'], button_map={'submit': 'primary'}) }}
<p><a href="{{ url_for('security.forgot_password') }}">I forgot my password</a></p>
{% endblock %}
2 changes: 1 addition & 1 deletion spkrepo/views/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def packages():
@frontend.route("/package/<name>")
def package(name):
package = Package.query.filter_by(name=name).first()
if package is None:
if package is None or not package.versions:
abort(404)
return render_template("frontend/package.html", package=package)

Expand Down

0 comments on commit 5bce172

Please sign in to comment.