Actualiza nomenclatura en código
This commit is contained in:
parent
d8b2e3089c
commit
c2b69fa539
9 changed files with 23 additions and 24 deletions
|
|
@ -15,7 +15,7 @@ impl ModuleTrait for User {
|
|||
Some(l("module_description"))
|
||||
}
|
||||
|
||||
fn configure_module(&self, cfg: &mut app::web::ServiceConfig) {
|
||||
fn configure_service(&self, cfg: &mut app::web::ServiceConfig) {
|
||||
cfg.route("/user/login", app::web::get().to(login));
|
||||
}
|
||||
|
||||
|
|
@ -29,6 +29,18 @@ impl ModuleTrait for User {
|
|||
}
|
||||
}
|
||||
|
||||
async fn login() -> app::Result<Markup> {
|
||||
Page::new()
|
||||
.with_title(
|
||||
"Identificación del usuario"
|
||||
)
|
||||
.add_to("content", Container::new()
|
||||
.with_id("welcome")
|
||||
.add(form_login())
|
||||
)
|
||||
.render()
|
||||
}
|
||||
|
||||
fn form_login() -> Form {
|
||||
Form::new()
|
||||
.with_id("user-login")
|
||||
|
|
@ -47,15 +59,3 @@ fn form_login() -> Form {
|
|||
)
|
||||
.add(form::Button::submit(l("login").as_str()))
|
||||
}
|
||||
|
||||
async fn login() -> app::Result<Markup> {
|
||||
Page::new()
|
||||
.with_title(
|
||||
"Identificación del usuario"
|
||||
)
|
||||
.add_to("content", Container::new()
|
||||
.with_id("welcome")
|
||||
.add(form_login())
|
||||
)
|
||||
.render()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue