Граф коммитов

2662 Коммитов

Автор SHA1 Сообщение Дата
Shane Tomlinson cfbdbd7abf
Merge pull request #6859 from mozilla/issue-6573-pw-strength-pw-change r=@vbudhram, @ryanfeeley
feat(pw-strength): Add pw-strength balloon to password change.
2019-01-31 13:03:17 +00:00
Shane Tomlinson 80e7611da6
feat(pw-strength): Add the pw-strength balloon to change-password
This was a real pain.

The difficulty started with assuming that the password input
element would be the first input element in the form. This
doesn't hold for change password where the old password comes
first. A way was needed to trigger element validation
in the correct order. This is done by storing a validator
function on the element that overrides the default
processing for that element, and is called in the
correct order..

Using the `validate` method this way the password-strength-mixin
a ton easier because `isValidStart` and `showValidationErrorsStart`
no longer need to be overridden.

Next, the password_strength_balloon model was way too complex
because the model's validate function was not being used in
the way Backbone instends. We now are, and we no longer need
the two methods 'updateForPassword' and 'validate', just the
2nd is needed. When model.isValid is called, and when the
model's password is updated, `model.validate()` is called,
and if the element is invalid, an `invalid` event is triggered
on the model.

fixes #6573
2019-01-31 12:00:05 +00:00
Shane Tomlinson a0915d11ee
Merge pull request #6893 from mozilla/reference-browser-token-code r=@vbudhram
chore(token-codes): Enroll Reference Browser in the token codes experiment
2019-01-31 11:02:20 +00:00
Vlad Filippov 3717f456b5
Merge pull request #6901 from mozilla/pairing-templates
feat(pair): add pair templates and graphics
2019-01-25 13:09:06 -05:00
Shane Tomlinson 7857bb4bfc
Merge pull request #6879 from hritvi/upgrade_code r=@shane-tomlinson
refactor(scripts): remove legacy account storage
2019-01-25 13:32:53 +00:00
hritvi a61467b9c4 refactor(scripts): remove legacy account storage 2019-01-25 17:35:43 +05:30
vladikoff dff4f7351d fix(forms): attach events for base view and child views 2019-01-24 12:36:30 -05:00
vladikoff 4aa00a8b35 feat(pair): add pair templates and graphics 2019-01-24 10:28:25 -05:00
Vlad Filippov 1d6ef34d05
Merge pull request #6884 from mozilla/empty-scope
fix(oauth): fix scope validation on empty scopes
2019-01-24 01:30:40 -05:00
Vlad Filippov 2c1727c497
Merge pull request #6896 from mozilla/p3-extract-1
fix(start): do not add extra history item when choosing start page
2019-01-24 00:43:01 -05:00
Vlad Filippov 67ec3926d5 fix(oauth): fix scope validation on empty scopes 2019-01-23 23:01:00 -05:00
vladikoff 6963d45828 fix(channel-client): remove unused errors 2019-01-23 22:33:12 -05:00
vladikoff 25312a4f79 fix(start): do not add extra history item when choosing start page 2019-01-23 22:22:49 -05:00
Ryan Kelly e8126f29c4
chore(token-codes): Enroll Reference Browser in the token codes experiment. 2019-01-23 13:12:00 +11:00
Shane Tomlinson 89fd8e3a0d
fix(pw-strength): Use 15px font size in pw-strength meter for Arabic.
Reports from users are that the password strength meter is difficult
to read in Arabic, which may be one reason why the conversion rate is so
low in that language. This uses a 15px font size in the pw-strength meter
to try to make it a bit easier to read.

fixes #6556
2019-01-22 15:11:44 +00:00
Hector Zhao f3dcbe0628 feat(settings): put communication prefs behind a feature flag 2019-01-22 14:27:53 +08:00
vladikoff 329640a50e fix(sign_in_code): fix code numeric input
Fixes #6765
2019-01-21 16:35:49 -05:00
Shane Tomlinson 1ba97d3378
feat(change-password): Add a "verification password" on password change.
get out of hand. To make development and review a bit simpler, this
extracts adding vpassword to the change password form.

Extraction from #6859
issue #6573
2019-01-21 11:14:59 +00:00
Phil Booth d28a13fd3d
Merge pull request #6875 from hritvi/old_storage_name
https://github.com/mozilla/fxa-content-server/pull/6875
r=philbooth
2019-01-15 18:57:10 +00:00
hritvi fbded65567 refactor(scripts): Removed tests involving fetching of uuid 2019-01-15 21:21:06 +05:30
Shane Tomlinson a7d44c6076
fix(l10n): Ensure tooltips are translated in local dev
The translator instance was not passed to the Tooltip. This
affects dev because only the instance created in app-start
fetches translations. The problem does not affect prod
because translations are built into the Translator object.

fixes #6871
2019-01-11 20:57:14 +00:00
Shane Tomlinson 6984fa8b5f
fix(TOTP): Translate success status messages on /settings/recovery_codes
view.translate was not being called on the success status messages
before writing to the DOM. This remedies that.

Also change writing status/error messages to the DOM from using
.html to .text to prevent XSS from creeping in.

fixes #6728
2019-01-11 15:23:38 +00:00
hritvi e5bea37201 refactor(scripts): Remove code for uuid(old storage name) 2019-01-11 16:13:00 +05:30
Phil Booth 73485ab277
fix(metrics): ensure deviceId falls back to `none` if not set 2019-01-11 08:35:15 +00:00
Shane Tomlinson 02da0e53c2
chore(modules): Convert several password related modules to es6 module format.
Extraction from #6859
2019-01-04 19:53:43 +00:00
Shane Tomlinson 5985b77431
fix(reset-password): No more error on /confirm_reset_password w/o initiating flow.
There was a missing return statement after navigating to `/reset_password` that
caused the `missing email` error to be displayed when looking up whether an account
recovery key exists for a given email address. Since there was no email address
in the test, and the error only appeared after a short delay, our tests didn't
catch the problem. Everything updated.

fixes #6724
2019-01-04 18:26:42 +00:00
Ryan Feeley 797f02f50b
Copy change to CWTS button
Changed "Save settings" to "Save selections"
2019-01-03 15:35:32 -05:00
Vijay Budhram a3c110e99b
Merge pull request #6749 from mozilla/recovery-key-32-length, r=@philbooth 2019-01-03 09:44:24 -05:00
Vijay Budhram 5025c28124
fix(recovery): use recovery key length of 32 2019-01-03 09:24:57 -05:00
Vijay Budhram 78e3360fc0
fix(icons): add screenshots svg 2019-01-02 10:46:46 -05:00
Vlad Filippov 344be8edb9 fix(styles): address the radius mismatch on the send button
Fixes #6566
2018-12-24 14:24:54 -05:00
Shane Tomlinson 6d64c59349
chore(recovery-key): Remove all recovery key experiment code.
Recovery keys are a full feature, there is no longer a need
to retain the experiment code and gating logic.

Not attached to an issue.
2018-12-21 19:42:39 +00:00
Shane Tomlinson 1744530335
fix(secondary-emails): Handle long emails in the secondary email panel
The .address CSS only took one button into account when the width
was calculated. If an email is verified, there are two buttons.

This makes affordances for the 2nd button, but only when the
email is verified.

fixes #6751
2018-12-20 18:22:56 +00:00
Vijay Budhram 2e50197bde
Merge pull request #6744 from mozilla/remove-confusing-message, r=@shane-tomlinson 2018-12-11 16:06:41 -05:00
vladikoff 3f249be58f feat(sms): remove SMS padlock
Fixes #6653
2018-12-11 12:27:13 -05:00
Vijay Budhram 2b17fe426d
fix(reset): remove confusing account recovery password reset messaging 2018-12-11 11:30:35 -05:00
Vijay Budhram ee6d02800e
Merge pull request #6735 from mozilla/token-code-25, r=@shane-tomlinson
chore(code): enable token code for 25% of all lockbox ios users
2018-12-10 11:24:10 -05:00
Vijay Budhram 56b07b631b
Merge pull request #6734 from mozilla/issue-6722, r=@shane-tomlinson, @vladikoff 2018-12-10 11:17:22 -05:00
Phil Booth 5511b99d77
Merge pull request #6733 from mozilla/pb/activity-109
https://github.com/mozilla/fxa-content-server/pull/6733
r=shane-tomlinson
2018-12-10 15:33:58 +00:00
Shane Tomlinson fe877dba27
feat(coppa): Put COPPA behind a feature flag.
Mozilla China's FxA stack does not need COPPA. So that
they don't have to remove it every time we update our
code, this puts the feature behind a feature flag.

In configuration, coppa.enabled set to `false` will disable COPPA.

fixes #6736
2018-12-07 11:54:21 +00:00
Vijay Budhram d8522f330b
chore(code): enable token code for 25% of all lockbox ios users 2018-12-04 23:20:36 -05:00
Phil Booth c10d699ad6
feat(metrics): add deviceId to the resume token
This ensures that the device id we send to Amplitude will remain
consistent when following links in emails, which should fix the broken
funnel analysis.
2018-11-30 09:48:17 +00:00
Vijay Budhram 5485d45e2f
chore(verify): remove server side verification 2018-11-29 23:03:03 -05:00
vladikoff 34377d4177 fix(tests): update from sinon reset to resetHistory
Fixes #6331
2018-11-27 15:26:39 -05:00
Shane Tomlinson 881efbc9a6
fix(l10n): Use an inline `t` function to ensure l10n works as expected.
`t` in `const {t} = BaseView` was being translated by Webpack/babel into
_base.t, which is not recognized by our l10n extraction script.

This changes all `t` declarations to use `const t = msg => msg` which
in local testing, has always kept the same name.

I tried using a module with a simple `module.export = msg => msg` and
import/requiring this using `import t from 'lib/t'`, but Webpack/babel
sometimes changed the `t` to `t_` which also is not recognized by
our extraction script.

issue #6725
2018-11-23 14:25:53 +00:00
Phil Booth 07371075db
fix(validation): accept emails containing an apostrophe on the front-end 2018-11-21 15:23:51 +00:00
Shane Tomlinson 509ea899de
feat(pw-strength): Add pw-strength meter to password reset
New PW strength bubble is added to the "complete password reset" screen.

fixes #6572
2018-11-20 14:26:07 +00:00
Vijay Budhram 2c042a2d67
fix(recovery): update recovery save options 2018-11-19 15:07:13 -05:00
Vijay Budhram 4611e19de1
Merge pull request #6703 from mozilla/issue-6495, r=@vladikoff
fix(reset): remove confusing password reset messaging
2018-11-19 15:03:31 -05:00
Vijay Budhram 9743a55856
Merge pull request #6700 from mozilla/issue-6634, r=@vladikoff
feat(signin): add use different account option in security/recovery codes
2018-11-19 15:00:32 -05:00