server/rest.rs: verify auth cookie
This commit is contained in:
1 parent
f484eed3c2
commit
b9903d6331
3 files changed
+55
-3
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ fn create_ticket(
|
||||
match authenticate_user(username, password) {
|
||||
Ok(_) => {
|
||||
|
||||
let ticket = assemble_rsa_ticket( private_auth_key(), "PBS", None, None)?;
|
||||
let ticket = assemble_rsa_ticket( private_auth_key(), "PBS", Some(username), None)?;
|
||||
|
||||
let token = assemble_csrf_prevention_token(csrf_secret(), username);
|
||||
|
||||
|
||||
Reference in new issue
Block a user