gofmt the OIDC pages
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4cf40644c9
commit
dfe4093aea
2 files changed
+5
-2
No files matched your search
@@ -235,7 +235,7 @@ var errOIDCAccount = errors.New("")
|
||||
|
||||
type accountError string
|
||||
|
||||
func (e accountError) Error() string { return string(e) }
|
||||
func (e accountError) Error() string { return string(e) }
|
||||
func (e accountError) Is(t error) bool { return t == errOIDCAccount }
|
||||
|
||||
// oidcUser is the account a provider's person signs in as: found by their
|
||||
|
||||
@@ -81,7 +81,10 @@ func (m *oidcStoreMem) UserByEmail(_ context.Context, e string) (store.User, err
|
||||
}
|
||||
return store.User{}, store.ErrNotFound
|
||||
}
|
||||
func (m *oidcStoreMem) CreateUser(_ context.Context, u store.User) error { m.users[u.Email] = u; return nil }
|
||||
func (m *oidcStoreMem) CreateUser(_ context.Context, u store.User) error {
|
||||
m.users[u.Email] = u
|
||||
return nil
|
||||
}
|
||||
func (m *oidcStoreMem) SetStaffRole(_ context.Context, id, role string) error {
|
||||
m.roles[id] = role
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user