aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/UserPage.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js
index 91500eb4..21859ea7 100644
--- a/modern/src/settings/UserPage.js
+++ b/modern/src/settings/UserPage.js
@@ -55,6 +55,7 @@ const UserPage = () => {
const currentUser = useSelector((state) => state.session.user);
const registrationEnabled = useSelector((state) => state.session.server.registration);
+ const openIdForced = useSelector((state) => state.session.server.openIdForce);
const mapStyles = useMapStyles();
const commonUserAttributes = useCommonUserAttributes(t);
@@ -135,11 +136,13 @@ const UserPage = () => {
label={t('userEmail')}
disabled={fixedEmail}
/>
- <TextField
- type="password"
- onChange={(event) => setItem({ ...item, password: event.target.value })}
- label={t('userPassword')}
- />
+ {!openIdForced && (
+ <TextField
+ type="password"
+ onChange={(event) => setItem({ ...item, password: event.target.value })}
+ label={t('userPassword')}
+ />
+ )}
</AccordionDetails>
</Accordion>
<Accordion>