mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-07-01 22:23:29 +00:00
Check email address
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'package:comunic/helpers/account_helper.dart';
|
||||
import 'package:comunic/models/authentication_details.dart';
|
||||
import 'package:comunic/ui/routes/create_account_route.dart';
|
||||
import 'package:comunic/ui/routes/reset_password_route.dart';
|
||||
import 'package:comunic/ui/widgets/init_widget.dart';
|
||||
import 'package:comunic/utils/input_utils.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
@ -65,6 +66,11 @@ class _LoginRouteState extends State<LoginRoute> {
|
||||
.push(MaterialPageRoute(builder: (c) => CreateAccountRoute()));
|
||||
}
|
||||
|
||||
void _openResetPasswordPage() {
|
||||
Navigator.of(context)
|
||||
.push(MaterialPageRoute(builder: (c) => ResetPasswordRoute()));
|
||||
}
|
||||
|
||||
/// Build error card
|
||||
Widget _buildErrorCard() {
|
||||
if (_authResult == null) return null;
|
||||
@ -134,6 +140,16 @@ class _LoginRouteState extends State<LoginRoute> {
|
||||
),
|
||||
onTap: () => _openCreateAccountPage(),
|
||||
),
|
||||
|
||||
Container(height: 10),
|
||||
|
||||
InkWell(
|
||||
child: Text(
|
||||
tr("Password forgotten"),
|
||||
style: TextStyle(color: Colors.blue),
|
||||
),
|
||||
onTap: _openResetPasswordPage,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user