Selaa lähdekoodia

Fixed issue with register not logging you in automatically.

KrisVos130 8 vuotta sitten
vanhempi
commit
e2320c0b2f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      backend/logic/actions/users.js

+ 1 - 1
backend/logic/actions/users.js

@@ -210,7 +210,7 @@ module.exports = {
 						obj.SID = result.SID;
 					}
 					logger.success("USER_PASSWORD_REGISTER", "Register successful with password for user '" + username + "'.");
-					cb({status: 'success', message: 'Successfully registered.'});
+					cb(obj);
 				});
 			}
 		});