Add basic register and login
All checks were successful
Build Crate / build (push) Successful in 1m45s
All checks were successful
Build Crate / build (push) Successful in 1m45s
This commit is contained in:
@@ -32,6 +32,15 @@ pub struct WebAuthInfo {
|
||||
pub remember_me: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct RegisterRequest {
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
pub email: String,
|
||||
pub nickname: String,
|
||||
pub registration_code: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct ForgotPasswordRequest {
|
||||
pub username: String,
|
||||
|
||||
Reference in New Issue
Block a user