Created
May 19, 2018 15:50
-
-
Save vladanyes/5f781d32ab835b79c67439cf13745ba4 to your computer and use it in GitHub Desktop.
Проверка администратора
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function checkCredentials(params) { | |
if ( | |
params.username.toLowerCase() !== 'admin' || | |
params.password !== '12345' | |
) { | |
return false | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment