Skip to main content

register

Function register 

Source
pub async fn register(
    username: String,
    email: String,
    password: String,
) -> Result<AuthResponse, ServerFnError>
Expand description

用户注册。

校验用户名、邮箱、密码,首个注册用户自动设为 admin; 已有 admin 时返回 “Registration is closed”。 Dioxus server function,注册在 /api 路径下。

§Handler information

  • Method: post
  • Path: <auto>