-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Simplelogin alias generation only generate random words instead the domain name #13024
base: main
Are you sure you want to change the base?
Simplelogin alias generation only generate random words instead the domain name #13024
Conversation
New Issues (10)Checkmarx found the following issues in this Pull Request
|
⛏️ Please include a video demonstrating the new functionality. |
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.
📝 This change also needs to be applied to credential-generator.component.ts
.
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.
🤔 Was this change requested by the vault team? The solution analysis indicates the website should be passed using an attribute on the component, not a new service.
If the vault team did ask for this service to be created, then it should be integrated within their component, not the shared tools component.
@@ -66,6 +67,7 @@ export class UsernameGeneratorComponent implements OnInit, OnDestroy { | |||
private accountService: AccountService, | |||
private zone: NgZone, | |||
private formBuilder: FormBuilder, | |||
private cipherFormUriService: CipherFormUriService, |
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.
❌ This couples the username generator to the vault. At present, the vault is the only consumer, but it's not the only one. Rewrite this to use an attribute.
// eslint-disable-next-line import/no-restricted-paths | ||
import { Injectable } from "@angular/core"; |
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.
❌ The lint is correct. @bitwarden/common
may not depend upon angular dependencies. Services implemented in common
should be manually configured using the JsLibServiceModule.
// FIXME: Update this file to be type safe and remove this and next line | ||
// @ts-strict-ignore |
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.
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-16171
📔 Objective
This PR addresses the issue where the Simplelogin alias generator creates random words instead of including the current website's domain name. The new implementation ensures that aliases are generated based on the active website domain and updates the Simplelogin alias note appropriately.
The alias should be generated in the format [email protected], where website is derived from the current browser tab's domain.
The alias note in Simplelogin should include:
Website: www.website.com. Generated by Bitwarden.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes