diff options
author | 2023-09-28 16:11:37 +0100 | |
---|---|---|
committer | 2023-09-30 10:13:48 +0100 | |
commit | ec0914ae254af409da1f0b775460d5234b6484b7 (patch) | |
tree | a72acbd7cea38b0e68a31b311de6da1c9fed244e /src/components/auth/Login.tsx | |
parent | 6.5.0-nightly.19 [skip ci] (diff) | |
download | ferdium-app-ec0914ae254af409da1f0b775460d5234b6484b7.tar.gz ferdium-app-ec0914ae254af409da1f0b775460d5234b6484b7.tar.zst ferdium-app-ec0914ae254af409da1f0b775460d5234b6484b7.zip |
fix: login and signup error messages
Diffstat (limited to 'src/components/auth/Login.tsx')
-rw-r--r-- | src/components/auth/Login.tsx | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/src/components/auth/Login.tsx b/src/components/auth/Login.tsx index cf7abe654..9bad731c8 100644 --- a/src/components/auth/Login.tsx +++ b/src/components/auth/Login.tsx | |||
@@ -139,26 +139,30 @@ class Login extends Component<IProps> { | |||
139 | <Input {...form.$('password').bind()} showPasswordToggle /> | 139 | <Input {...form.$('password').bind()} showPasswordToggle /> |
140 | {error.code === 'invalid-credentials' && ( | 140 | {error.code === 'invalid-credentials' && ( |
141 | <> | 141 | <> |
142 | <p className="error-message center"> | 142 | <h2 className="error-message center"> |
143 | {intl.formatMessage(messages.invalidCredentials)} | 143 | {intl.formatMessage(messages.invalidCredentials)} |
144 | </p> | 144 | </h2> |
145 | {window['ferdium'].stores.settings.all.app.server !== | 145 | {window['ferdium'].stores.settings.all.app.server !== |
146 | LIVE_FRANZ_API && ( | 146 | LIVE_FRANZ_API && ( |
147 | <p className="error-message center"> | 147 | <> |
148 | {intl.formatMessage(messages.customServerQuestion)}{' '} | 148 | <p className="error-message center"> |
149 | <Link | 149 | {intl.formatMessage(messages.customServerQuestion)}{' '} |
150 | to={`${window[ | 150 | </p> |
151 | 'ferdium' | 151 | <p className="error-message center"> |
152 | ].stores.settings.all.app.server.replace( | 152 | <Link |
153 | API_VERSION, | 153 | to={`${window[ |
154 | '', | 154 | 'ferdium' |
155 | )}/import`} | 155 | ].stores.settings.all.app.server.replace( |
156 | target="_blank" | 156 | API_VERSION, |
157 | style={{ cursor: 'pointer', textDecoration: 'underline' }} | 157 | '', |
158 | > | 158 | )}/import`} |
159 | {intl.formatMessage(messages.customServerSuggestion)} | 159 | target="_blank" |
160 | </Link> | 160 | style={{ cursor: 'pointer', textDecoration: 'underline' }} |
161 | </p> | 161 | > |
162 | {intl.formatMessage(messages.customServerSuggestion)} | ||
163 | </Link> | ||
164 | </p> | ||
165 | </> | ||
162 | )} | 166 | )} |
163 | </> | 167 | </> |
164 | )} | 168 | )} |