implement reset nkode

This commit is contained in:
2024-09-27 13:51:45 -05:00
parent 1b133edd78
commit 57b5308ca9
17 changed files with 489 additions and 88 deletions

View File

@@ -18,10 +18,11 @@ type UserSignSession struct {
ConfirmIdxInterface IdxInterface
SetKeySelection KeySelection
UserEmail Email
Reset bool
Expire int
}
func NewSignupSession(userEmail Email, kp KeypadDimension, customerId CustomerId, svgInterface SvgIdInterface) (*UserSignSession, error) {
func NewSignupResetSession(userEmail Email, kp KeypadDimension, customerId CustomerId, svgInterface SvgIdInterface, reset bool) (*UserSignSession, error) {
loginInterface, err := NewUserInterface(&kp, svgInterface)
if err != nil {
return nil, err
@@ -39,6 +40,7 @@ func NewSignupSession(userEmail Email, kp KeypadDimension, customerId CustomerId
SetKeySelection: nil,
UserEmail: userEmail,
Kp: kp,
Reset: reset,
}
return &session, nil