1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-04-24 06:50:41 +03:00

Merge pull request 'Get device_id from body instead of auth data' () from gnieto/conduit:fix/create-device into master

This commit is contained in:
Timo Kösters 2020-05-27 07:03:21 +02:00
commit dd80a8591d

View file

@ -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));