Skip to content

Commit f93fb38

Browse files
committed
Change documentation a little bit, and fix one bug.
1 parent fb97394 commit f93fb38

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

auth/auth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package auth implements password based user logins.
12
package auth
23

34
import (

confirm/confirm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package confirm implements user confirming after N bad sign-in attempts.
1+
// Package confirm implements confirmation of user registration via e-mail
22
package confirm
33

44
import (

oauth2/oauth2.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ func oauthCallback(ctx *authboss.Context, w http.ResponseWriter, r *http.Request
169169
return err
170170
}
171171

172-
// Log user in
172+
// Fully log user in
173173
ctx.SessionStorer.Put(authboss.SessionKey, fmt.Sprintf("%s;%s", uid, provider))
174+
ctx.SessionStorer.Del(authboss.SessionHalfAuthKey)
174175

175176
if err = authboss.Cfg.Callbacks.FireAfter(authboss.EventOAuth, ctx); err != nil {
176177
return nil

recover/recover.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package recover implements password reset via e-mail.
12
package recover
23

34
import (

remember/remember.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Package remember implements persistent logins through (typically) cookie session
2-
// storages. The SessionStorer implementation must be fully secure either over https
1+
// Package remember implements persistent logins through the cookie storer.
2+
// The ClientStorer implementation must be fully secure either over https
33
// or using signed cookies or it is easily exploitable.
44
package remember
55

0 commit comments

Comments
 (0)