Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit e85dc7d

Browse files
authored
fix(security): Set autocomplete="off" for all forms (#52)
Fixes #51
1 parent e30c11d commit e85dc7d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/forgot-password/forgot-password.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Stormpath, ForgotPasswordFormModel, StormpathErrorResponse } from '../s
1515
</div>
1616
<div class="row">
1717
<div class="col-xs-12">
18-
<form class="form-horizontal" *ngIf="!sent" #form="ngForm" (ngSubmit)="onSubmit(form.value)">
18+
<form class="form-horizontal" *ngIf="!sent" #form="ngForm" (ngSubmit)="onSubmit(form.value)" autocomplete="off">
1919
<div class="form-group">
2020
<label for="spEmail" class="col-sm-3 control-label">Email</label>
2121
<div class="col-sm-9">

src/login/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
@Component({
1010
selector: 'login-form',
1111
template: `<template #defaultTemplate>
12-
<form class="form-horizontal" #form="ngForm" (ngSubmit)="login(form.value)">
12+
<form class="form-horizontal" #form="ngForm" (ngSubmit)="login(form.value)" autocomplete="off">
1313
<div class="form-group">
1414
<label for="loginField" class="col-sm-3 control-label">Email</label>
1515
<div class="col-sm-9">

src/register/register.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Stormpath, LoginFormModel, RegistrationFormModel } from '../stormpath/s
88
@Component({
99
selector: 'register-form',
1010
template: `<template #defaultTemplate>
11-
<form *ngIf="!registered" (ngSubmit)="onSubmit()" class="form-horizontal">
11+
<form *ngIf="!registered" (ngSubmit)="onSubmit()" class="form-horizontal" autocomplete="off">
1212
<div class="form-group" *ngFor="let field of model?.form?.fields">
1313
<label [attr.for]="field.name" class="col-sm-4 control-label">{{field.label}}</label>
1414
<div class="col-sm-8">

src/resend-email-verification/resend-email-verification.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { Stormpath, ResendEmailVerificationRequest } from '../stormpath/stormpat
1717
1818
<div class="row">
1919
<div class="col-xs-12">
20-
<form class="form-horizontal" *ngIf="!sent" (ngSubmit)="onSubmit()">
20+
<form class="form-horizontal" *ngIf="!sent" (ngSubmit)="onSubmit()" autocomplete="off">
2121
2222
<div class="form-group">
2323
<label for="spUsername" class="col-xs-12 col-sm-4 control-label">Email address</label>

src/reset-password/reset-password.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Stormpath, PasswordResetRequest, defaultSpTokenResolver } from '../stor
1616
</div>
1717
<div class="row">
1818
<div class="col-xs-12">
19-
<form class="form-horizontal" *ngIf="verified && !reset" (ngSubmit)="onSubmit()">
19+
<form class="form-horizontal" *ngIf="verified && !reset" (ngSubmit)="onSubmit()" autocomplete="off">
2020
<div class="form-group">
2121
<label for="spUsername" class="col-xs-12 col-sm-4 control-label">New Password</label>
2222
<div class="col-xs-12 col-sm-4">

0 commit comments

Comments
 (0)