mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 10:58:50 +01:00
Tap 2FA hint to open the help page
This commit is contained in:
parent
4d1755db3a
commit
aab38b752d
9 changed files with 31 additions and 12 deletions
|
@ -1,2 +1,4 @@
|
||||||
const mainUrl = "https://gitlab.com/nkming2/nc-photos/-/wikis/home";
|
const mainUrl = "https://gitlab.com/nkming2/nc-photos/-/wikis/home";
|
||||||
const peopleUrl = "https://gitlab.com/nkming2/nc-photos/-/wikis/help/people";
|
const peopleUrl = "https://gitlab.com/nkming2/nc-photos/-/wikis/help/people";
|
||||||
|
const twoFactorAuthUrl =
|
||||||
|
"https://gitlab.com/nkming2/nc-photos/-/wikis/help/two-factor-authentication";
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Pokud máte zapnuté dvou fázové přihlášení, použijte prosím heslo",
|
"signIn2faHintText": "Pokud máte zapnuté dvou fázové přihlášení, použijte prosím heslo",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Verwenden Sie ein App-Passwort, wenn Sie die Zwei-Faktor-Authentifizierung auf dem Server aktiviert haben",
|
"signIn2faHintText": "Verwenden Sie ein App-Passwort, wenn Sie die Zwei-Faktor-Authentifizierung auf dem Server aktiviert haben",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Χρησιμοποιήστε ένα συνθηματικό εφαρμογής αν χρησιμοποιείτε πιστοποίηση δύο παραγόντων στο διακομιστή",
|
"signIn2faHintText": "Χρησιμοποιήστε ένα συνθηματικό εφαρμογής αν χρησιμοποιείτε πιστοποίηση δύο παραγόντων στο διακομιστή",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Use an app password if you have two-factor authentication enabled in the server",
|
"signIn2faHintText": "Use an app password if you have two-factor authentication enabled in the server",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Usa una contraseña de aplicación si tienes activada en el servidor la autentificación en dos pasos.",
|
"signIn2faHintText": "Usa una contraseña de aplicación si tienes activada en el servidor la autentificación en dos pasos.",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Utilisez un mot de passe d'application si vous avez activé l'authentification à deux facteurs sur le serveur",
|
"signIn2faHintText": "Utilisez un mot de passe d'application si vous avez activé l'authentification à deux facteurs sur le serveur",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
"@signInHeaderText": {
|
"@signInHeaderText": {
|
||||||
"description": "Inform user what to do in sign in widget"
|
"description": "Inform user what to do in sign in widget"
|
||||||
},
|
},
|
||||||
"signIn2faHintText": "*Воспользуйтесь паролем приложения, если на сервере действует двухфакторная аутентификация",
|
"signIn2faHintText": "Воспользуйтесь паролем приложения, если на сервере действует двухфакторная аутентификация",
|
||||||
"@signIn2faHintText": {
|
"@signIn2faHintText": {
|
||||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter/widgets.dart';
|
||||||
import 'package:logging/logging.dart';
|
import 'package:logging/logging.dart';
|
||||||
import 'package:nc_photos/account.dart';
|
import 'package:nc_photos/account.dart';
|
||||||
import 'package:nc_photos/app_localizations.dart';
|
import 'package:nc_photos/app_localizations.dart';
|
||||||
|
import 'package:nc_photos/help_utils.dart' as help_utils;
|
||||||
import 'package:nc_photos/list_extension.dart';
|
import 'package:nc_photos/list_extension.dart';
|
||||||
import 'package:nc_photos/platform/k.dart' as platform_k;
|
import 'package:nc_photos/platform/k.dart' as platform_k;
|
||||||
import 'package:nc_photos/pref.dart';
|
import 'package:nc_photos/pref.dart';
|
||||||
|
@ -12,6 +13,7 @@ import 'package:nc_photos/theme.dart';
|
||||||
import 'package:nc_photos/widget/connect.dart';
|
import 'package:nc_photos/widget/connect.dart';
|
||||||
import 'package:nc_photos/widget/home.dart';
|
import 'package:nc_photos/widget/home.dart';
|
||||||
import 'package:nc_photos/widget/root_picker.dart';
|
import 'package:nc_photos/widget/root_picker.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
class SignIn extends StatefulWidget {
|
class SignIn extends StatefulWidget {
|
||||||
static const routeName = "/sign-in";
|
static const routeName = "/sign-in";
|
||||||
|
@ -69,11 +71,26 @@ class _SignInState extends State<SignIn> {
|
||||||
alignment: AlignmentDirectional.centerStart,
|
alignment: AlignmentDirectional.centerStart,
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
maxWidth: AppTheme.widthLimitedContentMaxWidth),
|
maxWidth: AppTheme.widthLimitedContentMaxWidth),
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
|
child: InkWell(
|
||||||
|
onTap: () {
|
||||||
|
launch(help_utils.twoFactorAuthUrl);
|
||||||
|
},
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 32, vertical: 16),
|
horizontal: 16, vertical: 16),
|
||||||
child: Text(
|
child: Row(
|
||||||
L10n.global().signIn2faHintText,
|
mainAxisSize: MainAxisSize.max,
|
||||||
style: const TextStyle(fontStyle: FontStyle.italic),
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
const Icon(Icons.help_outline, size: 16),
|
||||||
|
const SizedBox(width: 4),
|
||||||
|
Expanded(
|
||||||
|
child: Text(L10n.global().signIn2faHintText),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!platform_k.isWeb) Expanded(child: Container()),
|
if (!platform_k.isWeb) Expanded(child: Container()),
|
||||||
|
|
Loading…
Reference in a new issue