rigged shuffle
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
type UserSignSession struct {
|
||||
Id models.SessionId
|
||||
CustomerId models.CustomerId
|
||||
CustomerId models.CustomerID
|
||||
LoginUserInterface UserInterface
|
||||
Kp KeypadDimension
|
||||
SetIdxInterface models.IdxInterface
|
||||
@@ -25,7 +25,31 @@ type UserSignSession struct {
|
||||
Colors []models.RGBColor
|
||||
}
|
||||
|
||||
func NewSignupResetSession(userEmail models.UserEmail, kp KeypadDimension, customerId models.CustomerId, svgInterface models.SvgIdInterface, reset bool) (*UserSignSession, error) {
|
||||
func NewSignupResetSessionRigged(userEmail models.UserEmail, kp KeypadDimension, customerId models.CustomerID, svgInterface models.SvgIdInterface, reset bool) (*UserSignSession, error) {
|
||||
loginInterface, err := NewUserInterface(&kp, svgInterface)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
setIdxInterface := make(models.IdxInterface, 36)
|
||||
for idx := range 36 {
|
||||
setIdxInterface[idx] = idx
|
||||
}
|
||||
session := UserSignSession{
|
||||
Id: models.SessionId(uuid.New()),
|
||||
CustomerId: customerId,
|
||||
LoginUserInterface: *loginInterface,
|
||||
SetIdxInterface: setIdxInterface,
|
||||
ConfirmIdxInterface: nil,
|
||||
SetKeySelection: nil,
|
||||
UserEmail: userEmail,
|
||||
Kp: kp,
|
||||
Reset: reset,
|
||||
Colors: []models.RGBColor{},
|
||||
}
|
||||
return &session, nil
|
||||
}
|
||||
|
||||
func NewSignupResetSession(userEmail models.UserEmail, kp KeypadDimension, customerId models.CustomerID, svgInterface models.SvgIdInterface, reset bool) (*UserSignSession, error) {
|
||||
loginInterface, err := NewUserInterface(&kp, svgInterface)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -46,7 +70,6 @@ func NewSignupResetSession(userEmail models.UserEmail, kp KeypadDimension, custo
|
||||
Reset: reset,
|
||||
Colors: colors,
|
||||
}
|
||||
|
||||
return &session, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user