| 241 return ret; |
241 return ret; |
| 242 } |
242 } |
| 243 |
243 |
| 244 // get auth db |
244 // get auth db |
| 245 ServerConfiguration *config = session_get_config(sn); |
245 ServerConfiguration *config = session_get_config(sn); |
| 246 AuthDB *authdb = cxMapGet(config->authdbs, cx_hash_key_str(db)); |
246 AuthDB *authdb = cxMapGet(config->authdbs, db); |
| 247 |
247 |
| 248 User *auth_user = authdb->get_user(authdb, sn, rq, user); |
248 User *auth_user = authdb->get_user(authdb, sn, rq, user); |
| 249 if(auth_user && !auth_user->verify_password(auth_user, pw)) { |
249 if(auth_user && !auth_user->verify_password(auth_user, pw)) { |
| 250 fprintf(stderr, "authdb user not authenticated: %s\n", user); |
250 fprintf(stderr, "authdb user not authenticated: %s\n", user); |
| 251 free(user); |
251 free(user); |