Changeset 7381 for trunk/gsdl/src/recpt/userdb.cpp
- Timestamp:
- 2004-05-24T15:34:40+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/userdb.cpp
r2750 r7381 48 48 text_t crypt_password; 49 49 50 if (text.empty()) return "";50 if (text.empty()) return g_EmptyText; 51 51 52 52 // encrypt the password 53 53 char *text_cstr = text.getcstr(); 54 if (text_cstr == NULL) return "";54 if (text_cstr == NULL) return g_EmptyText; 55 55 crypt_password = crypt(text_cstr, salt); 56 delete text_cstr;56 delete []text_cstr; 57 57 58 58 return crypt_password; … … 236 236 text_t format_user_groups(const text_t user_groups){ 237 237 238 text_t new_groups = "";238 text_t new_groups = g_EmptyText; 239 239 text_t::const_iterator here = user_groups.begin(); 240 240 text_t::const_iterator end = user_groups.end(); … … 287 287 text_t generate_key (const text_t &keydbfile, const text_t &username) { 288 288 gdbmclass keydb; 289 if (!keydb.opendatabase(keydbfile, GDBM_WRCREAT, 1000, true)) return "";289 if (!keydb.opendatabase(keydbfile, GDBM_WRCREAT, 1000, true)) return g_EmptyText; 290 290 291 291 text_t key = generate_key (keydb, username);
Note:
See TracChangeset
for help on using the changeset viewer.