Skip to content

Commit 7897f6c

Browse files
committed
fixed cookie value
1 parent 0fea6f5 commit 7897f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/users.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ pub fn kth_oidc_auth(
108108
// cookies.add(Cookie::new("nonce", nonce.secret().clone()));
109109
match cookies.get("nonce") {
110110
Some(nonce) => {
111-
println!("got nonce: {}", nonce);
112-
match get_oidc_user(params, Nonce::new(nonce.to_string())) {
111+
println!("got nonce: {}", nonce.value());
112+
match get_oidc_user(params, Nonce::new(nonce.value().to_string())) {
113113
Ok(_) => println!("good login!"),
114114
Err(err) => {
115115
println!("oidc error: {:?}", err);

0 commit comments

Comments
 (0)