mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
553f8e58d4
* fix: oauth2 redirect url not consistent * only use one redirect uri * feat: allow to disable password authentication * generate translation template * update error * redirect * query
15 lines
457 B
Go
15 lines
457 B
Go
package model
|
|
|
|
type UserForm struct {
|
|
Role uint8 `json:"role,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
Password string `json:"password,omitempty" gorm:"type:char(72)"`
|
|
}
|
|
|
|
type ProfileForm struct {
|
|
OriginalPassword string `json:"original_password,omitempty"`
|
|
NewUsername string `json:"new_username,omitempty"`
|
|
NewPassword string `json:"new_password,omitempty"`
|
|
RejectPassword bool `json:"reject_password,omitempty"`
|
|
}
|