mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 17:46:37 +02:00
Merge pull request 'Get device_id from body instead of auth data' (#27) from gnieto/conduit:fix/create-device into master
This commit is contained in:
commit
dd80a8591d
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue