1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-22 05:09:42 +02:00

Make storage requirements more consistent.

- Fix #44
This commit is contained in:
Aaron 2015-03-27 09:33:41 -07:00
parent 883a907ca4
commit 1c275a132a
3 changed files with 9 additions and 5 deletions

View File

@ -218,6 +218,7 @@ See also: [Validation](#validation)
- [Views](#views)
**Storage Requirements:**
- Email (string)
- ConfirmToken (string)
- Confirmed (bool)

View File

@ -84,8 +84,10 @@ func (c *Confirm) Routes() authboss.RouteTable {
// Storage requirements
func (c *Confirm) Storage() authboss.StorageOptions {
return authboss.StorageOptions{
StoreConfirmToken: authboss.String,
StoreConfirmed: authboss.Bool,
authboss.Cfg.PrimaryID: authboss.String,
authboss.StoreEmail: authboss.String,
StoreConfirmToken: authboss.String,
StoreConfirmed: authboss.Bool,
}
}

View File

@ -50,9 +50,10 @@ func (l *Lock) Routes() authboss.RouteTable {
// Storage requirements
func (l *Lock) Storage() authboss.StorageOptions {
return authboss.StorageOptions{
StoreAttemptNumber: authboss.Integer,
StoreAttemptTime: authboss.DateTime,
StoreLocked: authboss.DateTime,
authboss.Cfg.PrimaryID: authboss.String,
StoreAttemptNumber: authboss.Integer,
StoreAttemptTime: authboss.DateTime,
StoreLocked: authboss.DateTime,
}
}