mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 08:01:16 +00:00
33 lines
856 B
Go
33 lines
856 B
Go
package auth
|
|
|
|
type AuthData struct {
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
Turnstile string `json:"turnstile"`
|
|
// ReferralCode is the optional ?ref= code the signup arrived with. Carried
|
|
// to RegistrationConfirm so the new org can be attributed to its referrer.
|
|
ReferralCode string `json:"referral_code"`
|
|
}
|
|
|
|
type ConfirmData struct {
|
|
Session string `json:"session"`
|
|
Code string `json:"code"`
|
|
Turnstile string `json:"turnstile"`
|
|
}
|
|
|
|
type ResetPasswordStart struct {
|
|
Email string `json:"email"`
|
|
Turnstile string `json:"turnstile"`
|
|
}
|
|
|
|
type ResetPasswordConfirm struct {
|
|
Session string `json:"session"`
|
|
Password string `json:"password"`
|
|
Turnstile string `json:"turnstile"`
|
|
}
|
|
|
|
type ChangePassword struct {
|
|
CurrentPassword string `json:"current_password"`
|
|
NewPassword string `json:"new_password"`
|
|
}
|