kopia lustrzana https://github.com/cheeaun/phanpy
Extra check on the creds
Not really sure why this is happening or neededpull/1214/head
rodzic
2ce0423991
commit
1843d1d07e
|
@ -1491,7 +1491,7 @@ msgstr ""
|
||||||
|
|
||||||
#: src/components/nav-menu.jsx:326
|
#: src/components/nav-menu.jsx:326
|
||||||
#: src/pages/login.jsx:32
|
#: src/pages/login.jsx:32
|
||||||
#: src/pages/login.jsx:195
|
#: src/pages/login.jsx:199
|
||||||
#: src/pages/status.jsx:924
|
#: src/pages/status.jsx:924
|
||||||
#: src/pages/welcome.jsx:65
|
#: src/pages/welcome.jsx:65
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
|
@ -1926,7 +1926,7 @@ msgstr ""
|
||||||
#: src/components/shortcuts-settings.jsx:75
|
#: src/components/shortcuts-settings.jsx:75
|
||||||
#: src/components/shortcuts-settings.jsx:84
|
#: src/components/shortcuts-settings.jsx:84
|
||||||
#: src/components/shortcuts-settings.jsx:122
|
#: src/components/shortcuts-settings.jsx:122
|
||||||
#: src/pages/login.jsx:199
|
#: src/pages/login.jsx:203
|
||||||
msgid "Instance"
|
msgid "Instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -2612,7 +2612,7 @@ msgstr "Login required."
|
||||||
#: src/compose.jsx:91
|
#: src/compose.jsx:91
|
||||||
#: src/pages/annual-report.jsx:164
|
#: src/pages/annual-report.jsx:164
|
||||||
#: src/pages/http-route.jsx:91
|
#: src/pages/http-route.jsx:91
|
||||||
#: src/pages/login.jsx:276
|
#: src/pages/login.jsx:280
|
||||||
msgid "Go home"
|
msgid "Go home"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3325,32 +3325,32 @@ msgstr ""
|
||||||
msgid "No lists yet."
|
msgid "No lists yet."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/pages/login.jsx:118
|
#: src/pages/login.jsx:122
|
||||||
#: src/pages/login.jsx:128
|
#: src/pages/login.jsx:132
|
||||||
msgid "Failed to register application"
|
msgid "Failed to register application"
|
||||||
msgstr "Failed to register application"
|
msgstr "Failed to register application"
|
||||||
|
|
||||||
#: src/pages/login.jsx:214
|
#: src/pages/login.jsx:218
|
||||||
msgid "instance domain"
|
msgid "instance domain"
|
||||||
msgstr "instance domain"
|
msgstr "instance domain"
|
||||||
|
|
||||||
#: src/pages/login.jsx:238
|
#: src/pages/login.jsx:242
|
||||||
msgid "e.g. “mastodon.social”"
|
msgid "e.g. “mastodon.social”"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/pages/login.jsx:249
|
#: src/pages/login.jsx:253
|
||||||
msgid "Failed to log in. Please try again or try another instance."
|
msgid "Failed to log in. Please try again or try another instance."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/pages/login.jsx:261
|
#: src/pages/login.jsx:265
|
||||||
msgid "Continue with {selectedInstanceText}"
|
msgid "Continue with {selectedInstanceText}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/pages/login.jsx:262
|
#: src/pages/login.jsx:266
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/pages/login.jsx:270
|
#: src/pages/login.jsx:274
|
||||||
msgid "Don't have an account? Create one!"
|
msgid "Don't have an account? Create one!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,11 @@ function Login() {
|
||||||
setUIState('loading');
|
setUIState('loading');
|
||||||
try {
|
try {
|
||||||
let credentialApplication = getCredentialApplication(instanceURL);
|
let credentialApplication = getCredentialApplication(instanceURL);
|
||||||
if (!credentialApplication) {
|
if (
|
||||||
|
!credentialApplication ||
|
||||||
|
!credentialApplication.client_id ||
|
||||||
|
!credentialApplication.client_secret
|
||||||
|
) {
|
||||||
credentialApplication = await registerApplication({
|
credentialApplication = await registerApplication({
|
||||||
instanceURL,
|
instanceURL,
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue