Skip to content
Snippets Groups Projects
Commit 4b3b5623 authored by Guillem Nieto's avatar Guillem Nieto
Browse files

Get device_id from body instead of auth data

Device_id was retrieved from the auth data instead of login's body and
this was causing that a new device was created on every login.

This is (I guess) provoking that some sytests are failing (for example,
"POST /login returns the same device_id as that in the request").
parent d0e5a39d
No related branches found
No related tags found
No related merge requests found
......@@ -293,6 +293,7 @@ pub fn login_route(
// Generate new device id if the user didn't specify one
let device_id = body
.body
.device_id
.unwrap_or_else(|| utils::random_string(DEVICE_ID_LENGTH));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment