fix authTest

abstract out pssword digest
This commit is contained in:
Eliot Horowitz
2009-01-21 18:58:03 -05:00
parent ef08378ffe
commit c14ac3ac0e
3 changed files with 16 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ int main() {
conn.remove( "test.system.users" , emptyObj );
}
conn.insert( "test.system.users" , BUILDOBJ( "user" << "eliot" << "pwd" << "bar" ) );
conn.insert( "test.system.users" , BUILDOBJ( "user" << "eliot" << "pwd" << conn.createPasswordDigest( "bar" ) ) );
errmsg.clear();
bool ok = conn.auth( "test" , "eliot" , "bar" , errmsg );