diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-09-20 02:50:07 +0200 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-09-20 02:50:07 +0200 |
commit | 627a217e7e74a6800475a9b3898855b26edd4a16 (patch) | |
tree | 64ca6d32ae3c21aa71ddb8a1cd2e458aed394a01 /auth.go | |
parent | e562f632fd2d56f9a0998a8f39ef7bcccb09f6ba (diff) | |
download | bommom-627a217e7e74a6800475a9b3898855b26edd4a16.tar.gz bommom-627a217e7e74a6800475a9b3898855b26edd4a16.zip |
pseudo persona stuff
Diffstat (limited to 'auth.go')
-rw-r--r-- | auth.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -12,6 +12,7 @@ type AuthService interface { NewAccount(name, pw, email string) error ChangePassword(name, oldPw, newPw string) error GetEmail(name string) (string, error) + GetUserName(email string) (string, error) } // DummyAuth is a "wide-open" implementation of AuthService for development and @@ -32,5 +33,9 @@ func (da DummyAuth) ChangePassword(name, oldPw, newPw string) error { } func (da DummyAuth) GetEmail(name string) (string, error) { - return "example@bommom.com", nil + return "example@localhost", nil +} + +func (da DummyAuth) GetUserName(name string) (string, error) { + return "common", nil } |