feat: simplified the signup
This commit is contained in:
parent
970e566dea
commit
63b59432a3
7 changed files with 136 additions and 313 deletions
10
src/main.rs
10
src/main.rs
|
@ -1,6 +1,8 @@
|
|||
use skynet_ldap_backend::methods::account_new::{post_new_account, post_new_account_confirmation};
|
||||
use skynet_ldap_backend::methods::account_update::post_update_ldap;
|
||||
use skynet_ldap_backend::{db_init, get_config, State};
|
||||
use skynet_ldap_backend::{
|
||||
db_init, get_config,
|
||||
methods::{account_new::post_new_account, account_update::post_update_ldap},
|
||||
State,
|
||||
};
|
||||
|
||||
#[async_std::main]
|
||||
async fn main() -> tide::Result<()> {
|
||||
|
@ -19,9 +21,7 @@ async fn main() -> tide::Result<()> {
|
|||
let mut app = tide::with_state(state);
|
||||
|
||||
app.at("/ldap/update").post(post_update_ldap);
|
||||
|
||||
app.at("/ldap/new").post(post_new_account);
|
||||
app.at("/ldap/new/verify").post(post_new_account_confirmation);
|
||||
|
||||
app.listen(host_port).await?;
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue