mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-24 08:42:17 +02:00
b09e4831b6
- Fix #79 - Rename event EventGet to EventGetUser - Remove double DB fetch - Add new event callpoint: After(EventGetUser) for things that need to check that the user is ABLE to be gotten after it's fetched from the DB. That is before returning to the web app, ensure that the user is valid from a confirmation/lock etc point of view. - Add test to make sure all the events are firing in CurrentUser()
38 lines
998 B
Go
38 lines
998 B
Go
// generated by stringer -output stringers.go -type Event,Interrupt; DO NOT EDIT
|
|
|
|
package authboss
|
|
|
|
import "fmt"
|
|
|
|
const _Event_name = "EventRegisterEventAuthEventOAuthEventAuthFailEventOAuthFailEventRecoverStartEventRecoverEndEventGetUserEventGetUserSessionEventPasswordReset"
|
|
|
|
var _Event_index = [...]uint8{13, 22, 32, 45, 59, 76, 91, 103, 122, 140}
|
|
|
|
func (i Event) String() string {
|
|
if i < 0 || i >= Event(len(_Event_index)) {
|
|
return fmt.Sprintf("Event(%d)", i)
|
|
}
|
|
hi := _Event_index[i]
|
|
lo := uint8(0)
|
|
if i > 0 {
|
|
lo = _Event_index[i-1]
|
|
}
|
|
return _Event_name[lo:hi]
|
|
}
|
|
|
|
const _Interrupt_name = "InterruptNoneInterruptAccountLockedInterruptAccountNotConfirmedInterruptSessionExpired"
|
|
|
|
var _Interrupt_index = [...]uint8{13, 35, 63, 86}
|
|
|
|
func (i Interrupt) String() string {
|
|
if i < 0 || i >= Interrupt(len(_Interrupt_index)) {
|
|
return fmt.Sprintf("Interrupt(%d)", i)
|
|
}
|
|
hi := _Interrupt_index[i]
|
|
lo := uint8(0)
|
|
if i > 0 {
|
|
lo = _Interrupt_index[i-1]
|
|
}
|
|
return _Interrupt_name[lo:hi]
|
|
}
|