feat: dockerize libredesk

- feat: new flag for idempotent installation `--idempotent-install`
- feat: new flag to skip yes/no prompt `--yes`
- feat: new flag for upgrades `--upgrade`
- refactor: update doc strings and sample toml file.
- chore: update .gitignore.
This commit is contained in:
Abhinav Raut
2025-02-22 23:32:47 +05:30
parent 730740094f
commit 5361bcb24f
11 changed files with 185 additions and 50 deletions

View File

@@ -289,6 +289,7 @@ func (a *Auth) SetCSRFCookie(r *fastglue.Request) error {
return nil
}
// ValidateSession validates the session and returns the user.
func (a *Auth) ValidateSession(r *fastglue.Request) (models.User, error) {
a.mu.RLock()
defer a.mu.RUnlock()