1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-02-03 13:21:22 +02:00

Change documentation a little bit, and fix one bug.

This commit is contained in:
Aaron 2015-03-15 08:06:08 -07:00
parent fb97394c7f
commit f93fb38181
5 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,4 @@
// Package auth implements password based user logins.
package auth
import (

View File

@ -1,4 +1,4 @@
// Package confirm implements user confirming after N bad sign-in attempts.
// Package confirm implements confirmation of user registration via e-mail
package confirm
import (

View File

@ -169,8 +169,9 @@ func oauthCallback(ctx *authboss.Context, w http.ResponseWriter, r *http.Request
return err
}
// Log user in
// Fully log user in
ctx.SessionStorer.Put(authboss.SessionKey, fmt.Sprintf("%s;%s", uid, provider))
ctx.SessionStorer.Del(authboss.SessionHalfAuthKey)
if err = authboss.Cfg.Callbacks.FireAfter(authboss.EventOAuth, ctx); err != nil {
return nil

View File

@ -1,3 +1,4 @@
// Package recover implements password reset via e-mail.
package recover
import (

View File

@ -1,5 +1,5 @@
// Package remember implements persistent logins through (typically) cookie session
// storages. The SessionStorer implementation must be fully secure either over https
// Package remember implements persistent logins through the cookie storer.
// The ClientStorer implementation must be fully secure either over https
// or using signed cookies or it is easily exploitable.
package remember