auth

Paddy 2014-11-20 Parent:42bc3e44f4fe Child:61a802849b51

79:eb3f2938a319 Go to Latest

auth/token.go

Test authentication helper, fix bugs with authentication. Authentication needs to be hex encoded to be stored, so it only makes sense to decode the hex string stored to get the bytes we'll be comparing. Check for ErrLoginNotFound in addition to ErrProfileNotFound. ErrLoginNotFound is more likely to occur, anyways. Add unit tests for our authentication helper to verify it functions as expected.

History