Skip to content

Commit

Permalink
do not rotate profile pic on password enter
Browse files Browse the repository at this point in the history
  • Loading branch information
eromatiya committed Aug 7, 2020
1 parent 75583a7 commit 8f70d78
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,11 @@ class Authentication {
this._password = this._passwordInputEl.value;

if (e.key === 'Enter') {
// Don't allow empty passwords
if (this._password.length < 1) {
return;
}
// Prevent login spamming
if (profilePictureRotate.getProfileAnimationStatus()) return;
// Rotate profile picture
profilePictureRotate.rotateProfilePicture();


// Validate
lightdm.respond(String(this._password));
}
Expand Down

0 comments on commit 8f70d78

Please sign in to comment.