Skip to content

Commit 8f70d78

Browse files
committed
do not rotate profile pic on password enter
1 parent 75583a7 commit 8f70d78

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

js/authentication.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,11 @@ class Authentication {
195195
this._password = this._passwordInputEl.value;
196196

197197
if (e.key === 'Enter') {
198+
// Don't allow empty passwords
198199
if (this._password.length < 1) {
199200
return;
200201
}
201-
// Prevent login spamming
202-
if (profilePictureRotate.getProfileAnimationStatus()) return;
203-
// Rotate profile picture
204-
profilePictureRotate.rotateProfilePicture();
205-
202+
206203
// Validate
207204
lightdm.respond(String(this._password));
208205
}

0 commit comments

Comments
 (0)