mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Apply password policy on all forms
This commit is contained in:
		@@ -88,6 +88,10 @@ class APIRequest {
 | 
			
		||||
  /// Execute the request, throws an exception in case of failure
 | 
			
		||||
  Future<APIResponse> execWithThrow() async => (await exec()).assertOk();
 | 
			
		||||
 | 
			
		||||
  /// Execute the request, throws an exception in case of failure
 | 
			
		||||
  Future<Map<String, dynamic>> execWithThrowGetObject() async =>
 | 
			
		||||
      (await execWithThrow()).getObject();
 | 
			
		||||
 | 
			
		||||
  /// Execute the request with files
 | 
			
		||||
  Future<APIResponse> execWithFiles() async => APIHelper().execWithFiles(this);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										19
									
								
								lib/models/res_check_password_reset_token.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								lib/models/res_check_password_reset_token.dart
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
 | 
			
		||||
/// Check password reset token result
 | 
			
		||||
///
 | 
			
		||||
/// @author Pierre Hubert
 | 
			
		||||
 | 
			
		||||
class ResCheckPasswordToken {
 | 
			
		||||
  final String firstName;
 | 
			
		||||
  final String lastName;
 | 
			
		||||
  final String email;
 | 
			
		||||
 | 
			
		||||
  const ResCheckPasswordToken({
 | 
			
		||||
    @required this.firstName,
 | 
			
		||||
    @required this.lastName,
 | 
			
		||||
    @required this.email,
 | 
			
		||||
  })  : assert(firstName != null),
 | 
			
		||||
        assert(lastName != null),
 | 
			
		||||
        assert(email != null);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user