Implement password authentication
This commit is contained in:
@ -39,6 +39,10 @@ async fn main() -> std::io::Result<()> {
|
||||
"/auth/reset_password",
|
||||
web::post().to(auth_controller::reset_password),
|
||||
)
|
||||
.route(
|
||||
"/auth/password_login",
|
||||
web::post().to(auth_controller::password_login),
|
||||
)
|
||||
})
|
||||
.bind(AppConfig::get().listen_address.as_str())?
|
||||
.run()
|
||||
|
Reference in New Issue
Block a user