public static Authenticate ( this database, string username, string password ) : bool | ||
database | this | |
username | string | |
password | string | |
return | bool |
public static bool Authenticate(this IDatabase database, string username, string password)
{
// Create a temporary connection for authentication only...
using (var session = database.CreateSystemSession()) {
session.CurrentSchema(SystemSchema.Name);
return session.Access().Authenticate(username, password);
}
}