Skip to content

Commit

Permalink
Refactor #1623
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Oct 30, 2020
1 parent 556600c commit 530e6d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/password/Password.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ interface PasswordProps extends React.HTMLProps<HTMLInputElement> {
weakLabel?: string;
mediumLabel?: string;
strongLabel?: string;
mediumRegex?: string;
strongRegex?: string;
feedback?: boolean;
tooltip?: any;
tooltipOptions?: TooltipOptions;
Expand Down
12 changes: 12 additions & 0 deletions src/showcase/password/PasswordDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ import {Password} from 'primereact/password';
<td>Strong</td>
<td>Text for a strong password.</td>
</tr>
<tr>
<td>mediumRegex</td>
<td>string</td>
<td>{`^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,}).`}</td>
<td>Regex for a medium level password.</td>
</tr>
<tr>
<td>strongRegex</td>
<td>string</td>
<td>{`^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})`}</td>
<td>Regex for a strong level password.</td>
</tr>
<tr>
<td>feedback</td>
<td>boolean</td>
Expand Down

0 comments on commit 530e6d5

Please sign in to comment.