You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
455 B
24 lines
455 B
library StubLib;
|
|
|
|
import '../IAuthManager.dart';
|
|
import '../User.dart';
|
|
import 'StubData.dart';
|
|
|
|
class AuthManager extends IAuthManager {
|
|
final StubData parent;
|
|
|
|
// Constructor
|
|
AuthManager(this.parent);
|
|
|
|
// Methods
|
|
bool verifiedUser(String mail, String password) {
|
|
for (var user in parent.players) {
|
|
if (user is User && user.mail == mail) {
|
|
parent.userCurrent = user;
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|