-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actually use Device Type for mails #4916
Conversation
If the device type is Android or iOS, the mobile client should include a device model as the name, so the notification email should ideally include that info for those device types. I'm not sure if any other device types include useful model/name info. |
Let's not forget that the email template says "Device Type", not "Device Type and Name/Model" or anything like that.
Ideally I try to stick as close as possible to Bitwarden's behaviour when implementing these changes, and the emails from them don't specify the device name/model number either. Nonetheless, let's see what others have to say about this change. |
Vaultwarden does various things differently from Bitwarden, as long as they are compatible improvements. For example, Bitwarden does not even have a 2FA incomplete notification AFAIK. |
I agree with @jjlin. But for something like emails shouldn't be an issue. I even was thinking about adding basic location detection based upon IP. |
261ae78
to
fb8d6f7
Compare
I chose atype on purpose to match how it was in device.rs: vaultwarden/src/db/models/device.rs Line 19 in 248e561
Which one do you prefer @BlackDex? atype or just type? |
|
This is only called |
fb8d6f7
to
f3dc00a
Compare
Hopefully things are good now |
783c5d0
to
e123c93
Compare
cfdac26
to
6bc27e2
Compare
@BlackDex Not sure if this is what you meant, but that's all I could come up with. I'm not particularly familiar with Rust (or programming in general tbh). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is what i mend indeed.
I just noticed something else too. Not that important, but no need to create new variables for those items actually.
- match Bitwarden behaviour - add a different segment in mails for Device Name
6bc27e2
to
aff302a
Compare
With this merged I get the following on startup:
My DB is I rolled back and there are no issues. |
- match Bitwarden behaviour - add a different segment in mails for Device Name
@dfunkt i just checked this out. I have an iOS device and just tried to login to the web vault using Google chrome iOS app, i closed out on the 2fa page which prompted the 2fa incomplete notification. Device type and device name both say safari, is that normal? |
I think that might be due to Chrome using the same browser engine as Safari on iOS. I expect this happens with Bitwarden as well, but I don't have any iOS devices in order to test my theory. TL;DR: I think this is expected |
I also attempted the iOS bitwarden app, and device name was iPhone 15,2 and device type was iOS. So as you said probably normal due to browser not passing the info along. |
Examples:
Chrome Extension
Before -> New Device Logged In From/Incomplete Two-Step Login From/Device Type: Chrome
After -> New Device Logged In From/Incomplete Two-Step Login From/Device Type: Chrome Extension
Poco F3 (shows up as M2012K11AG)
Before -> New Device Logged In From/Incomplete Two-Step Login From/Device Type: M2012K11AG
After -> New Device Logged In From/Incomplete Two-Step Login From/Device Type: Android