commit 18/12/2025
This commit is contained in:
@@ -125,8 +125,10 @@ class WebApp(val listenPort: Int, var userlist: List<Pair<String, String>>, val
|
||||
// Redirect to home page
|
||||
if (user.first== GetAdminUserFromConfig()){
|
||||
it.redirect("homeadmin.html")
|
||||
println("User ${user.first} redirected to homeadmin.html")
|
||||
} else {
|
||||
it.redirect("homeviewer.html")
|
||||
println("User ${user.first} redirected to homeviewer.html")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user