Commit Graph

158 Commits

Author SHA1 Message Date
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01:00
Daniel James Smith bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Daniel James Smith 4b2266a7ce
Add newline before export class 2022-01-04 16:48:57 +01:00
Daniel James Smith a3fd33c5ae
Apply prettier for previously ignored file 2022-01-04 16:41:07 +01:00
Daniel James Smith bc3de6e115
Move address containsOptions to Identity constants 2022-01-02 16:16:10 +01:00
Daniel James Smith 30f7e29773
Move fullname containsOptions to Identity constants 2022-01-02 16:15:52 +01:00
Daniel James Smith 306b7e38c3
Move cardExpiry containsOptions to CC constants 2022-01-02 16:13:32 +01:00
Daniel James Smith c0134e2776
Move cardnumber containsOptions to CC constants 2022-01-02 16:13:04 +01:00
Daniel James Smith 3bfddd0043
Move cardholder containsOptions to CC constants 2022-01-02 16:09:28 +01:00
Daniel James Smith 643fc17151
Move pasword field ignore list to AutoFillConstants 2022-01-02 15:49:37 +01:00
Daniel James Smith 4e274c2f44
Move card expiry fieldnames to CC constants 2022-01-02 15:44:57 +01:00
Daniel James Smith ec60979ee2
Move cardNumber fieldnames to CC constants 2022-01-02 15:44:19 +01:00
Daniel James Smith 37948db899
Move cardholder fieldnames to CC constants 2022-01-02 15:43:29 +01:00
Daniel James Smith ff6e63a335
Move address fieldnames to Identity constants 2022-01-02 15:42:39 +01:00
Daniel James Smith 9e350e25ce
Move fullname fieldnames to Identity constants 2022-01-02 15:41:52 +01:00
Daniel James Smith 8f889310c2
Move company fieldnames to Identity constants 2022-01-02 14:57:12 +01:00
Daniel James Smith 0a1b0f5eb9
Move username fieldnames to Identity constants 2022-01-02 14:56:01 +01:00
Daniel James Smith aeeb44e8c9
Move phone fieldnames to Identity constants 2022-01-02 14:54:31 +01:00
Daniel James Smith 423ef40aa1
Move country fieldnames to Identity constants 2022-01-02 14:52:52 +01:00
Daniel James Smith 4390989a88
Move state fieldnames to Identity constants 2022-01-02 14:51:34 +01:00
Daniel James Smith 61dbe5421f
Move city fieldnames to Identity constants 2022-01-02 14:50:26 +01:00
Daniel James Smith 6304964ad4
Move postalCode fieldnames to Identity constants 2022-01-02 14:49:10 +01:00
Daniel James Smith a880cf32e6
Move address3 fieldnames to Identity constants 2022-01-02 14:47:12 +01:00
Daniel James Smith e12b9ffa67
Move address2 fieldnames to Identity constants 2022-01-02 14:46:54 +01:00
Daniel James Smith b2a3cd7feb
Move address1 fieldnames to Identity constants 2022-01-02 14:43:46 +01:00
Daniel James Smith d25d532184
Move email fieldnames to Identity constants 2022-01-02 14:41:50 +01:00
Daniel James Smith c45d1f8f7e
Move title fieldnames to Identity constants 2022-01-02 14:40:10 +01:00
Daniel James Smith 729150d404
Move middle name fieldnames to Identity constants 2022-01-02 14:37:57 +01:00
Daniel James Smith 5c66dade4a
Move card brand fieldnames to CC constants 2022-01-02 14:18:17 +01:00
Daniel James Smith 7e5b50a6cb
Move CVV fieldnames to CC constants 2022-01-02 14:16:27 +01:00
Daniel James Smith bb294ac792
Move ExpiryYear fieldnames to CC constants 2022-01-02 14:12:56 +01:00
Daniel James Smith 8992f348d2
Move ExpiryMonth fieldnames to CC constants 2022-01-02 14:10:16 +01:00
Daniel James Smith 5fb9d0ee7f
Separate Identity constants into its own class 2022-01-02 14:01:26 +01:00
Daniel James Smith 47b40e0049
Separate CreditCard constants into its own class 2022-01-02 13:56:42 +01:00
Daniel James Smith 0fbeabf7a6
Extract constants for autofill into separate file 2022-01-02 13:45:32 +01:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Thomas Rittson 2113c709a4
[Linked fields] Add Linked Field as a custom field type (#1963)
* Proof of concept for Linked custom field type

* Linked Fields for all cipher types, use dropdown

* Fix linked icon alignment

* Tweak linked icon alignment and style

* Move add-edit custom fields to own component

* Disable copy for linked field

* Use Field.LinkedId to store linked field info
2021-11-04 07:40:42 +10:00
gabrielfin 2228ffac47
Do not autofill inputs meant for password recovery (#1999)
Fixes issue #1956
2021-10-25 16:16:01 +10:00
Oscar Hinton ce2e6c3cb4
Remove empty catch blocks and remove allow-empty-catch tslint rule (#2136) 2021-10-21 11:10:46 +02:00
Kyle Spearrin 812741219d
Ability to auto-fill span elements (#2095)
* ability to autofill span elements

* add modification comments
2021-09-30 16:02:13 -04:00
Oscar Hinton a848406ce0
Use explicit import paths (#2074) 2021-09-17 15:44:27 +02:00
Oscar Hinton 4e1958f417
Add jslib as a "real" dependency (#1876)
* Support split jslib

* Fix tests

* Bump jslib
2021-06-07 19:25:37 +02:00
Thomas Rittson 56e127d20c Merge branch 'master' into feature-aopl-options 2021-05-18 10:11:40 +10:00
Thomas Rittson 59c50f7fb0 remove unused skipTotp option on doAutoFill 2021-05-17 13:19:43 +10:00
Thomas Rittson 13b0e09c2c Merge branch 'master' into feature-aopl-options 2021-05-14 10:55:14 +10:00
Thomas Rittson af61732800 Copy TOTP after all autofills, remove old UI 2021-05-14 10:04:08 +10:00
Thomas Rittson 8c29cf7f33 Organize Options page and add headings 2021-05-05 13:57:50 +10:00
Thomas Rittson 0da4f7df73
Merge branch 'master' into copy-totp-on-auto-fill 2021-05-05 12:23:37 +10:00
Oscar Hinton cdc71dd661
Password reprompt (#1784)
* Add support for password reprompt

* Rename passwordPrompt to reprompt.

* Move showPasswordDialog to paltformutils

* Fix swal2 validation error styling

* Group imports

* Update src/_locales/en/messages.json

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2021-05-03 20:56:38 +02:00
Thomas Rittson 4956cf9d8d Fix linting 2021-03-15 12:35:23 +10:00