mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Merge pull request #212 from LemmyNet/add_password_length
Adding more max password lengths. Fixes #211
This commit is contained in:
commit
c270bed2d7
4 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,7 @@ export class Login extends Component<any, State> {
|
||||||
onInput={linkEvent(this, this.handleLoginPasswordChange)}
|
onInput={linkEvent(this, this.handleLoginPasswordChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
maxLength={60}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
@ -92,6 +92,7 @@ export class PasswordChange extends Component<any, State> {
|
||||||
onInput={linkEvent(this, this.handlePasswordChange)}
|
onInput={linkEvent(this, this.handlePasswordChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
maxLength={60}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -107,6 +108,7 @@ export class PasswordChange extends Component<any, State> {
|
||||||
onInput={linkEvent(this, this.handleVerifyPasswordChange)}
|
onInput={linkEvent(this, this.handleVerifyPasswordChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
maxLength={60}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -675,6 +675,7 @@ export class Person extends Component<any, PersonState> {
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={this.state.userSettingsForm.new_password}
|
value={this.state.userSettingsForm.new_password}
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
|
maxLength={60}
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleUserSettingsNewPasswordChange
|
this.handleUserSettingsNewPasswordChange
|
||||||
|
@ -696,6 +697,7 @@ export class Person extends Component<any, PersonState> {
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={this.state.userSettingsForm.new_password_verify}
|
value={this.state.userSettingsForm.new_password_verify}
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
|
maxLength={60}
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleUserSettingsNewPasswordVerifyChange
|
this.handleUserSettingsNewPasswordVerifyChange
|
||||||
|
@ -717,6 +719,7 @@ export class Person extends Component<any, PersonState> {
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={this.state.userSettingsForm.old_password}
|
value={this.state.userSettingsForm.old_password}
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
|
maxLength={60}
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleUserSettingsOldPasswordChange
|
this.handleUserSettingsOldPasswordChange
|
||||||
|
@ -812,6 +815,7 @@ export class Person extends Component<any, PersonState> {
|
||||||
type="password"
|
type="password"
|
||||||
value={this.state.deleteAccountForm.password}
|
value={this.state.deleteAccountForm.password}
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
|
maxLength={60}
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleDeleteAccountPasswordChange
|
this.handleDeleteAccountPasswordChange
|
||||||
|
|
|
@ -123,6 +123,7 @@ export class Setup extends Component<any, State> {
|
||||||
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
|
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
maxLength={60}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,6 +139,7 @@ export class Setup extends Component<any, State> {
|
||||||
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
|
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
maxLength={60}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue