mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-14 06:40:08 +00:00
Check if push_uuid is empty and generate when needed
Signed-off-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
parent
8d73aace20
commit
88753c201d
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ impl Device {
|
|||
let time_now = Utc::now();
|
||||
self.updated_at = time_now.naive_utc();
|
||||
|
||||
// Generate a random push_uuid so if it doesn't already have one
|
||||
if self.push_uuid.is_none() {
|
||||
self.push_uuid = Some(PushId(get_uuid()));
|
||||
}
|
||||
|
||||
// ---
|
||||
// Disabled these keys to be added to the JWT since they could cause the JWT to get too large
|
||||
// Also These key/value pairs are not used anywhere by either Vaultwarden or Bitwarden Clients
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue