From 627a217e7e74a6800475a9b3898855b26edd4a16 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 20 Sep 2012 02:50:07 +0200 Subject: pseudo persona stuff --- auth.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'auth.go') 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 } -- cgit v1.2.3