moved to visa
This commit is contained in:
parent
4ebab3cb80
commit
94b6336ae9
8 changed files with 1 additions and 18 deletions
1
login.go
1
login.go
|
@ -1 +0,0 @@
|
|||
package whoisthis
|
|
@ -1 +0,0 @@
|
|||
package argon2id
|
|
@ -1 +0,0 @@
|
|||
package bcrypt
|
|
@ -1,9 +0,0 @@
|
|||
package login
|
||||
|
||||
type LoginResult string
|
||||
|
||||
type LoginMethod interface {
|
||||
Login()
|
||||
Logout()
|
||||
Recover()
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
package md5pepper
|
||||
|
||||
// an old historical implementation
|
|
@ -1 +0,0 @@
|
|||
package whoisthis
|
|
@ -15,7 +15,7 @@ func (wis WhoIsThis) Authed(next http.Handler) http.Handler {
|
|||
|
||||
user, err := wis.LookupReqFn(r)
|
||||
if err != nil {
|
||||
http.Error(w, "please sign-in", http.StatusUnauthorized)
|
||||
wis.DenyFn(w, r)
|
||||
return
|
||||
}
|
||||
ctxWithUser := context.WithValue(r.Context(), ContextUserId, user)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
package whoisthis
|
Loading…
Add table
Reference in a new issue