- @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.
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]); return query.fetchOne(); }