auth

Paddy 2014-11-20 Parent:b3cd7765a7c8 Child:1dc4e152e3b0

79:eb3f2938a319 Go to Latest

auth/client.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