added some more doc for the funcs
This commit is contained in:
parent
08880ea88b
commit
840db08294
6
user.go
6
user.go
@ -21,10 +21,7 @@ type userInfo struct {
|
||||
EmailVerified bool `json:"email_verified"`
|
||||
}
|
||||
|
||||
func (u *user) addTranx(t tranx) {
|
||||
u.txs = append(u.txs, t)
|
||||
}
|
||||
|
||||
//authorizedEmail checks whether the email coming in is in the preapproved list
|
||||
func authorizedEmail(e string) bool {
|
||||
b := false
|
||||
for _, i := range authEmails {
|
||||
@ -46,6 +43,7 @@ func getUser(e string) (int, error) {
|
||||
return 0, fmt.Errorf("could not find user")
|
||||
}
|
||||
|
||||
//addUser adds user to slice of users
|
||||
func addUser(u userInfo) {
|
||||
_, err := getUser(u.Email)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user