about summary refs log tree commit diff
path: root/src/credentials.go
blob: 7bbcf19aa7e09ef24e1fa38e4bfaf3ba233dd45e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}