-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
launch app with empty dataset on successful login
- Loading branch information
Showing
4 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.authenticate <- function(username, password) { | ||
authorised_file <- system.file(package = "iSEElogin", "authorized") | ||
authorised_info <- read.table(authorised_file, col.names = c("username", "password")) | ||
any( | ||
username == authorised_info$username & | ||
digest(password, "sha512") == authorised_info$password | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
testuser 88d89fa7e0441e6118d3769140efb8d23ae897920d4dcb8cb4d48e8e3a96ace3e10245eb99eac499a33498d8a232fd1f45a1627c3937c9bcca5b5072936cb22d | ||
wronguser nevergonnamatch |