- @override
Returns an Authenticatable
for an username
.
This method must return an instance of Authenticatable
if one exists for username
. Otherwise, it must return null.
If overriding this method, every property declared by Authenticatable
must be non-null in the return value.
server
is the AuthServer
invoking this method.
Source
@override Future<T> fetchAuthenticatableByUsername(AuthServer server, String username) { var query = new Query<T>(context) ..where.username = username ..returningProperties((t) => [t.id, t.hashedPassword, t.salt, t.username]); return query.fetchOne(); }