mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
chore (maintenance): form name conventions
This commit is contained in:
parent
65256de0eb
commit
628c23b682
1 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ func (this SimpleAuth) EntryPoint(idpParams map[string]string, req *http.Request
|
|||
res.Write([]byte(Page(`
|
||||
<form action="` + WithBase("/api/session/auth/") + `" method="post" class="component_middleware">
|
||||
<label>
|
||||
<input type="text" name="email" value="" placeholder="Email" />
|
||||
<input type="text" name="user" value="" placeholder="Email" />
|
||||
</label>
|
||||
<label>
|
||||
<input type="password" name="password" value="" placeholder="Password" />
|
||||
|
|
@ -171,7 +171,7 @@ func (this SimpleAuth) Callback(formData map[string]string, idpParams map[string
|
|||
return nil, err
|
||||
}
|
||||
requestedUser := withMFA(User{
|
||||
Email: formData["email"],
|
||||
Email: formData["user"],
|
||||
Password: formData["password"],
|
||||
}, formData["session"])
|
||||
requestedUser.Code = formData["code"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue