Add session logout warning below password input (#212)

Co-authored-by: Michael Albert <37796947+awesome-michael@users.noreply.github.com>
This commit is contained in:
Przemysław Romanik 2023-01-16 20:18:21 +01:00 committed by GitHub
parent f2526dc00e
commit 561daf7737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -358,7 +358,11 @@ export const UserEdit = props => {
/> />
<TextInput source="id" disabled /> <TextInput source="id" disabled />
<TextInput source="displayname" /> <TextInput source="displayname" />
<PasswordInput source="password" autoComplete="new-password" /> <PasswordInput
source="password"
autoComplete="new-password"
helperText="resources.users.helper.password"
/>
<SelectInput <SelectInput
source="user_type" source="user_type"
choices={choices_type} choices={choices_type}

View File

@ -124,6 +124,7 @@ const de = {
user_type: "Benutzertyp", user_type: "Benutzertyp",
}, },
helper: { helper: {
password: "Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",
deactivate: deactivate:
"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.", "Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",
erase: "DSGVO konformes Löschen der Benutzerdaten", erase: "DSGVO konformes Löschen der Benutzerdaten",

View File

@ -123,6 +123,7 @@ const en = {
user_type: "User type", user_type: "User type",
}, },
helper: { helper: {
password: "Changing password will log user out of all sessions.",
deactivate: "You must provide a password to re-activate an account.", deactivate: "You must provide a password to re-activate an account.",
erase: "Mark the user as GDPR-erased", erase: "Mark the user as GDPR-erased",
}, },