#7679 [WebUI] all validation items are rendered on each key typing at login form
Closed: fixed 5 years ago Opened 5 years ago by slev.

For now all validation items are rendered on each keypress event at login form.

check_caps_lock: function(e) {                                                  

    var s = String.fromCharCode(e.keyCode || e.which);                          

    if ((s.toUpperCase() === s && s.toLowerCase() !== s && !e.shiftKey)||       
      (s.toUpperCase() !== s && s.toLowerCase() === s && e.shiftKey)) {         
        this.display_caps_warning(true);                                        
    } else if ((s.toLowerCase() === s && s.toUpperCase() !== s && !e.shiftKey)||
      (s.toLowerCase() !== s && s.toUpperCase() === s && e.shiftKey)) {         
        this.display_caps_warning(false);                                       
    }                                                                           
    // in other cases it's most likely non alpha numeric character                 
},

Mostly It is overhead.


Metadata Update from @abiagion:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2270

5 years ago

Metadata Update from @abbra:
- Issue assigned to abbra

5 years ago

Metadata Update from @abbra:
- Issue assigned to slev (was: abbra)

5 years ago

Metadata Update from @abbra:
- Issue set to the milestone: FreeIPA 4.7.1

5 years ago

master:

  • 1857dc9 Fix render validation items on keypress event at login form

ipa-4-7:

  • 5b1dce5 Fix render validation items on keypress event at login form

Metadata Update from @stsymbal:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata