mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 02:28:54 +03:30
1.7.0
This commit is contained in:
@@ -37,7 +37,7 @@ class _RePassScreenState extends State<RePassScreen> {
|
||||
super.didChangeDependencies();
|
||||
}
|
||||
|
||||
Future<void> _showDialog(String message) async{
|
||||
Future<void> _showDialog(String message) async {
|
||||
await showDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
@@ -62,11 +62,12 @@ class _RePassScreenState extends State<RePassScreen> {
|
||||
setState(() {
|
||||
_isLoading = true;
|
||||
});
|
||||
await Provider.of<Auth>(context)
|
||||
await Provider.of<Auth>(context, listen: false)
|
||||
.sendRePass(passwordController.text, token)
|
||||
.then((value) async{
|
||||
.then((value) async {
|
||||
if (value == 'done') {
|
||||
await _showDialog('Password changed successfully.Now login to your account.');
|
||||
await _showDialog(
|
||||
'Password changed successfully.Now login to your account.');
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user