Skip to content

Commit 911dfe6

Browse files
authored
Merge pull request #1248 from firebase/@invertase/bb-10
2 parents c200d00 + 729309e commit 911dfe6

17 files changed

+2
-23
lines changed

examples/react/src/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const routes = [
6464
{
6565
name: "Forgot Password Screen",
6666
description: "A screen allowing a user to reset their password",
67-
path: "/screens/forgot-password-screen",
67+
path: "/screens/forgot-password-auth-screen",
6868
component: ForgotPasswordAuthScreenPage,
6969
},
7070
{

examples/react/src/screens/sign-in-auth-screen-w-handlers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function SignInAuthScreenWithHandlersPage() {
2424
return (
2525
<SignInAuthScreen
2626
onForgotPasswordClick={() => {
27-
navigate("/screen/forgot-password-auth-screen");
27+
navigate("/screens/forgot-password-auth-screen");
2828
}}
2929
onSignUpClick={() => {
3030
navigate("/screens/sign-up-auth-screen");

packages/angular/src/lib/auth/forms/email-link-auth-form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export class EmailLinkAuthFormComponent {
9696
this.form.update({
9797
validators: {
9898
onBlur: this.formSchema(),
99-
onSubmit: this.formSchema(),
10099
onSubmitAsync: async ({ value }) => {
101100
try {
102101
await sendSignInLinkToEmail(this.ui(), value.email);

packages/angular/src/lib/auth/forms/forgot-password-auth-form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export class ForgotPasswordAuthFormComponent {
104104
this.form.update({
105105
validators: {
106106
onBlur: this.formSchema(),
107-
onSubmit: this.formSchema(),
108107
onSubmitAsync: async ({ value }) => {
109108
try {
110109
await sendPasswordResetEmail(this.ui(), value.email);

packages/angular/src/lib/auth/forms/mfa/totp-multi-factor-assertion-form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export class TotpMultiFactorAssertionFormComponent {
7878
this.form.update({
7979
validators: {
8080
onBlur: this.formSchema(),
81-
onSubmit: this.formSchema(),
8281
onSubmitAsync: async ({ value }) => {
8382
try {
8483
const assertion = TotpMultiFactorGenerator.assertionForSignIn(this.hint().uid, value.verificationCode);

packages/angular/src/lib/auth/forms/phone-auth-form.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ export class PhoneNumberFormComponent {
101101
this.form.update({
102102
validators: {
103103
onBlur: this.formSchema(),
104-
onSubmit: this.formSchema(),
105104
onSubmitAsync: async ({ value }) => {
106105
const selectedCountry = countryData.find((c) => c.code === this.country());
107106
const formattedNumber = formatPhoneNumber(value.phoneNumber, selectedCountry!);
@@ -207,7 +206,6 @@ export class VerificationFormComponent {
207206
this.form.update({
208207
validators: {
209208
onBlur: this.formSchema(),
210-
onSubmit: this.formSchema(),
211209
onSubmitAsync: async ({ value }) => {
212210
try {
213211
const credential = await confirmPhoneNumber(this.ui(), this.verificationId(), value.verificationCode);

packages/angular/src/lib/auth/forms/sign-in-auth-form.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ export class SignInAuthFormComponent {
118118
effect(() => {
119119
this.form.update({
120120
validators: {
121-
onChange: this.formSchema(),
122121
onBlur: this.formSchema(),
123-
onSubmit: this.formSchema(),
124122
onSubmitAsync: async ({ value }) => {
125123
try {
126124
const credential = await signInWithEmailAndPassword(this.ui(), value.email, value.password);

packages/angular/src/lib/auth/forms/sign-up-auth-form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export class SignUpAuthFormComponent {
120120
this.form.update({
121121
validators: {
122122
onBlur: this.formSchema(),
123-
onSubmit: this.formSchema(),
124123
onSubmitAsync: async ({ value }) => {
125124
try {
126125
const credential = await createUserWithEmailAndPassword(

packages/react/src/auth/forms/email-link-auth-form.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export function useEmailLinkAuthForm(onSuccess?: EmailLinkAuthFormProps["onEmail
5858
},
5959
validators: {
6060
onBlur: schema,
61-
onSubmit: schema,
6261
onSubmitAsync: async ({ value }) => {
6362
try {
6463
await action(value);

packages/react/src/auth/forms/forgot-password-auth-form.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function useForgotPasswordAuthForm(onSuccess?: ForgotPasswordAuthFormProp
5757
},
5858
validators: {
5959
onBlur: schema,
60-
onSubmit: schema,
6160
onSubmitAsync: async ({ value }) => {
6261
try {
6362
await action(value);

0 commit comments

Comments
 (0)