1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-24 08:42:17 +02:00
authboss/stringers.go
Aaron L f70bdd5eeb Add EventAuthHijack to work around ordering issue
Lock/Confirm and possibly other authentication preemption mechanisms
hook into 'Before(EventAuth)', but the ordering of these rejection
mechanisms mixed with the 2fa acceptance response could result in a
dual response.
2018-12-16 22:50:26 -08:00

17 lines
577 B
Go

// Code generated by "stringer -output stringers.go -type Event"; DO NOT EDIT.
package authboss
import "strconv"
const _Event_name = "EventRegisterEventAuthEventAuthHijackEventOAuth2EventAuthFailEventOAuth2FailEventRecoverStartEventRecoverEndEventGetUserEventGetUserSessionEventPasswordReset"
var _Event_index = [...]uint8{0, 13, 22, 37, 48, 61, 76, 93, 108, 120, 139, 157}
func (i Event) String() string {
if i < 0 || i >= Event(len(_Event_index)-1) {
return "Event(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Event_name[_Event_index[i]:_Event_index[i+1]]
}