diff options
Diffstat (limited to 'src/credentials.go')
-rw-r--r-- | src/credentials.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/credentials.go b/src/credentials.go new file mode 100644 index 0000000..7bbcf19 --- /dev/null +++ b/src/credentials.go @@ -0,0 +1,18 @@ +package main + +import "flag" + +var ( + username* string + accessCode* string +) + +func registerCredentialsFlags() { + username = flag.String("username", "Player 1", "Username") + accessCode = flag.String("accessCode", "AllYourCodesAreBelongToUs", "Access code for the user") +} + + +func verifyCredentials(un string, ac string) (bool) { + return *username == un && *accessCode == ac +} \ No newline at end of file |