mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Rename route with a more logical name
This commit is contained in:
		@@ -13,7 +13,7 @@ import 'package:flutter/rendering.dart';
 | 
			
		||||
///
 | 
			
		||||
/// @author Pierre Hubert
 | 
			
		||||
 | 
			
		||||
class ResetPasswordRoute extends StatelessWidget {
 | 
			
		||||
class ForgotPasswordRoute extends StatelessWidget {
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    return Scaffold(
 | 
			
		||||
@@ -133,8 +133,8 @@ class _ResetPasswordBodyState extends SafeState<_ResetPasswordBody> {
 | 
			
		||||
      _setLoading(false);
 | 
			
		||||
    } catch (e, s) {
 | 
			
		||||
      print("Could not check given email! $e\n$s");
 | 
			
		||||
      showSimpleSnack(
 | 
			
		||||
          context, tr("An error occurred while checking your recovery options !"));
 | 
			
		||||
      showSimpleSnack(context,
 | 
			
		||||
          tr("An error occurred while checking your recovery options !"));
 | 
			
		||||
      _setLoading(false);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
@@ -1,7 +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/routes/forgot_password_route.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/init_widget.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/login_scaffold.dart';
 | 
			
		||||
import 'package:comunic/utils/input_utils.dart';
 | 
			
		||||
@@ -69,7 +69,7 @@ class _LoginRouteState extends State<LoginRoute> {
 | 
			
		||||
 | 
			
		||||
  void _openResetPasswordPage() {
 | 
			
		||||
    Navigator.of(context)
 | 
			
		||||
        .push(MaterialPageRoute(builder: (c) => ResetPasswordRoute()));
 | 
			
		||||
        .push(MaterialPageRoute(builder: (c) => ForgotPasswordRoute()));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Build error card
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user