noctux / adora-belle

A simple helpdesk tailored for use in remote-only university exercises
GNU Affero General Public License v3.0
2 stars 7 forks source link

redirect to admin page automatically if user is "admin" #1

Closed romsom closed 4 years ago

romsom commented 4 years ago

Natürlich nur bedingt nützlich, solange wir keine Liste von Usern mit Adminrechten haben oder man im Account ein admin flag setzen und abfragen kann...

noctux commented 4 years ago

You could always query "/admin/requests", and on success do the redirect. The basic code is already there (the code testing the username/password initially does exactly that, but against the public endpoint).

noctux commented 4 years ago

Hmm, just noticed that it is not that easy :/ For non localhost paths, this triggeres an Password dialog for the failed path (so the path the students would trigger...) rolling back temporarily