src/anonimongo/core/auth

Source   Edit  

Procs

proc authenticate(sock: AsyncSocket; user, pass: string;
                  T: typedesc = Sha256Digest; dbname = "admin.$cmd"): Future[
    bool] {....stackTrace: false.}
Authenticate a single asyncsocket based on username and password and also mechanism for authenticating. Available T for typedesc is SHA256Digest and SHA1Digest. Default is SHA256Digest and default database login is admin. Source   Edit  
proc authenticate(sock: Socket; user, pass: string; T: typedesc = Sha256Digest;
                  dbname = "admin.$cmd"): bool
Authenticate a single asyncsocket based on username and password and also mechanism for authenticating. Available T for typedesc is SHA256Digest and SHA1Digest. Default is SHA256Digest and default database login is admin. Source   Edit