aboutsummaryrefslogtreecommitdiffstats
path: root/auth.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-09-20 02:50:07 +0200
committerbnewbold <bnewbold@robocracy.org>2012-09-20 02:50:07 +0200
commit627a217e7e74a6800475a9b3898855b26edd4a16 (patch)
tree64ca6d32ae3c21aa71ddb8a1cd2e458aed394a01 /auth.go
parente562f632fd2d56f9a0998a8f39ef7bcccb09f6ba (diff)
downloadbommom-627a217e7e74a6800475a9b3898855b26edd4a16.tar.gz
bommom-627a217e7e74a6800475a9b3898855b26edd4a16.zip
pseudo persona stuff
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/auth.go b/auth.go
index f0ef530..80b3088 100644
--- a/auth.go
+++ b/auth.go
@@ -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
}