mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-20 17:55:55 +00:00
fix: require password login for creation of new token (#9070)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9070 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
c064ce4ad0
3 changed files with 87 additions and 2 deletions
|
@ -151,6 +151,7 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore
|
|||
|
||||
log.Trace("Basic Authorization: Logged in user %-v", u)
|
||||
|
||||
store.GetData()["IsPasswordLogin"] = true
|
||||
return u, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue