fix: Reset password

This commit is contained in:
Krille Fear 2022-02-19 13:11:59 +01:00
commit 7263787197
4 changed files with 37 additions and 24 deletions

View file

@ -88,16 +88,18 @@ class LoginView extends StatelessWidget {
),
),
),
Center(
child: TextButton(
onPressed: controller.passwordForgotten,
child: Text(
L10n.of(context)!.passwordForgotten,
style: const TextStyle(
color: Colors.blue,
decoration: TextDecoration.underline,
),
const Divider(height: 32),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: ElevatedButton(
onPressed: controller.loading
? null
: controller.passwordForgotten,
style: ElevatedButton.styleFrom(
primary: Theme.of(context).secondaryHeaderColor,
onPrimary: Colors.red,
),
child: Text(L10n.of(context)!.passwordForgotten),
),
),
],