1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00

fix: Add password requirements when creating user

Closes #293
This commit is contained in:
Maksim Eltyshev 2022-09-02 17:04:51 +05:00
parent 79e5f7f6f3
commit b14f25bfad
2 changed files with 20 additions and 9 deletions

View file

@ -142,15 +142,20 @@ const UserAddStep = React.memo(
onChange={handleFieldChange} onChange={handleFieldChange}
/> />
<div className={styles.text}>{t('common.password')}</div> <div className={styles.text}>{t('common.password')}</div>
<Input.Password <div className={styles.field}>
fluid <Input.Password
ref={passwordField} fluid
name="password" ref={passwordField}
value={data.password} name="password"
readOnly={isSubmitting} value={data.password}
className={styles.field} readOnly={isSubmitting}
onChange={handleFieldChange} className={styles.field}
/> onChange={handleFieldChange}
/>
<div className={styles.note}>
{t('common.mustBeAtLeast6CharactersLongAndContainAtLeastOneLetterAndNumber')}
</div>
</div>
<div className={styles.text}>{t('common.name')}</div> <div className={styles.text}>{t('common.name')}</div>
<Input <Input
fluid fluid

View file

@ -3,6 +3,12 @@
margin-bottom: 8px; margin-bottom: 8px;
} }
.note {
font-size: 11px;
margin-top: 4px;
opacity: 0.5;
}
.text { .text {
color: #444444; color: #444444;
font-size: 12px; font-size: 12px;