Skip to content

Commit

Permalink
fix: clarify user login for patrons
Browse files Browse the repository at this point in the history
- Closes rero#3789.
- Adds vulnerability exception (tests).

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
  • Loading branch information
PascalRepond committed Nov 28, 2024
1 parent c9f901d commit 208728e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rero_ils/theme/templates/rero_ils/login_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h3 class="card-title my-4">{{_('Log in to account') }}</h3>
name="login_user_form">
{{form.hidden_tag()}}
{{form_errors(form)}}
{{ render_field(form.email, icon="fa fa-user", autofocus=True, errormsg=False, placeholder=_("E-mail or username")) }}
{{ render_field(form.email, icon="fa fa-user", autofocus=True, errormsg=False, placeholder=_("Card number, username, or e-mail")) }}
{{ render_field(form.password, icon="fa fa-lock", errormsg=False) }}
<button type="submit" class="btn btn-primary btn-lg btn-block mb-2"><i class="fa fa-sign-in"></i>
{{_('Log In')}}</button>
Expand Down
4 changes: 3 additions & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ function pretests () {
# Vulnerability ID: 51457
# -> Vulnerability found in sentry-sdk version 1.45.1
# Vulnerability ID: 72260
# -> Vulnerability found in werkzeug version 2.2.3
# Vulnerability ID: 73889
info_msg "Check vulnerabilities:"
safety_exceptions="-i 40459 -i 72731 -i 70624 -i 51668 -i 42194 -i 42852 -i 62019 -i 71595 -i 71594 -i 70612 -i 72982 -i 51457 -i 72260"
safety_exceptions="-i 40459 -i 72731 -i 70624 -i 51668 -i 42194 -i 42852 -i 62019 -i 71595 -i 71594 -i 70612 -i 72982 -i 51457 -i 72260 -i 73889"
msg=$(safety check -o text ${safety_exceptions}) || {
echo "Safety vulnerabilites found for packages:" $(safety check -o bare ${safety_exceptions})
echo "Run: \"safety check -o screen ${safety_exceptions} | grep -i vulnerability\" for more details"
Expand Down

0 comments on commit 208728e

Please sign in to comment.