mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 02:48:54 +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 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": {
|
||||
"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": {
|
||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||
},
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
"@signInHeaderText": {
|
||||
"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": {
|
||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||
},
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
"@signInHeaderText": {
|
||||
"description": "Inform user what to do in sign in widget"
|
||||
},
|
||||
"signIn2faHintText": "*Χρησιμοποιήστε ένα συνθηματικό εφαρμογής αν χρησιμοποιείτε πιστοποίηση δύο παραγόντων στο διακομιστή",
|
||||
"signIn2faHintText": "Χρησιμοποιήστε ένα συνθηματικό εφαρμογής αν χρησιμοποιείτε πιστοποίηση δύο παραγόντων στο διακομιστή",
|
||||
"@signIn2faHintText": {
|
||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||
},
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
"@signInHeaderText": {
|
||||
"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": {
|
||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||
},
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
"@signInHeaderText": {
|
||||
"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": {
|
||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||
},
|
||||
|
@ -711,7 +711,7 @@
|
|||
"removeFromAlbumTooltip": "Quitar del álbum",
|
||||
"@removeFromAlbumTooltip": {
|
||||
"description": "Remove the opened photo from an album"
|
||||
},
|
||||
},
|
||||
"changelogTitle": "Registro de cambios",
|
||||
"@changelogTitle": {
|
||||
"description": "Title of the changelog dialog"
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
"@signInHeaderText": {
|
||||
"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": {
|
||||
"description": "Notify users with 2FA enabled what should be done in order to sign in correctly"
|
||||
},
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
"@signInHeaderText": {
|
||||
"description": "Inform user what to do in sign in widget"
|
||||
},
|
||||
"signIn2faHintText": "*Воспользуйтесь паролем приложения, если на сервере действует двухфакторная аутентификация",
|
||||
"signIn2faHintText": "Воспользуйтесь паролем приложения, если на сервере действует двухфакторная аутентификация",
|
||||
"@signIn2faHintText": {
|
||||
"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:nc_photos/account.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/platform/k.dart' as platform_k;
|
||||
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/home.dart';
|
||||
import 'package:nc_photos/widget/root_picker.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class SignIn extends StatefulWidget {
|
||||
static const routeName = "/sign-in";
|
||||
|
@ -69,11 +71,26 @@ class _SignInState extends State<SignIn> {
|
|||
alignment: AlignmentDirectional.centerStart,
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: AppTheme.widthLimitedContentMaxWidth),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
launch(help_utils.twoFactorAuthUrl);
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 32, vertical: 16),
|
||||
child: Text(
|
||||
L10n.global().signIn2faHintText,
|
||||
style: const TextStyle(fontStyle: FontStyle.italic),
|
||||
horizontal: 16, vertical: 16),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
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()),
|
||||
|
|
Loading…
Reference in a new issue