Skip to content

Commit

Permalink
[Surrey] Display 'password required'-type msg if empty pword
Browse files Browse the repository at this point in the history
  • Loading branch information
nephila-nacrea committed Aug 27, 2024
1 parent f11541e commit f257466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/web/base/auth/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h1>
<label for="password_sign_in">[% loc('Your password') %]</label>

<div class="form-txt-submit-box">
<input type="password" name="password_sign_in" class="form-control" id="password_sign_in" value="" autocomplete="current-password">
<input type="password" name="password_sign_in" class="form-control required" id="password_sign_in" value="" autocomplete="current-password">
<input class="green-btn" type="submit" name="sign_in_by_password" value="[% loc('Sign in') %]">
</div>

Expand Down
4 changes: 4 additions & 0 deletions web/cobrands/fixmystreet/fixmystreet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,10 @@ $.extend(fixmystreet.set_up, {
$('.js-sign-in-password').show().css('visibility', 'visible');
});

$('[name=sign_in_by_code]').on('click', function() {
$('#password_sign_in').removeClass('required');
});

var show = function(selector) {
var deferred = $.Deferred();
$(selector).hide().removeClass('hidden-js').slideDown(400, function(){
Expand Down

0 comments on commit f257466

Please sign in to comment.