Skip to content

Commit

Permalink
MD5 passwords deactivated
Browse files Browse the repository at this point in the history
- see #89
  • Loading branch information
vankasteelj committed Jan 19, 2022
1 parent 369aa37 commit 5becbb7
Show file tree
Hide file tree
Showing 2 changed files with 7,146 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/js/main/osactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ const OsActions = {
// USERINTERACTION: log to OS and store creds
login: () => {
// use MD5 password to somewhat protect it, waiting for OS to have oauth
const password = crypt.createHash('MD5').update($('#login-password').val()).digest('hex');
const password = $('#login-password').val();
const username = $('#login-username').val();

// d41d8.. is '' empty string
if (!username || password === 'd41d8cd98f00b204e9800998ecf8427e') {
if (!username || password === '') {
console.warn('OsActions.login() -> no password/username');
if (!username) {
Interface.animate($('#login-username'), 'warning', 1750);
}
if (password === 'd41d8cd98f00b204e9800998ecf8427e') {
if (password === '') {
Interface.animate($('#login-password'), 'warning', 1750);
}
Interface.animate($('#button-login'), 'buzz', 1000);
Expand Down
Loading

0 comments on commit 5becbb7

Please sign in to comment.