Commit cd9804cb by Juho Juopperi

Remember to use prefix for the generated QR code.

1 parent 985936b9
...@@ -130,7 +130,7 @@ public class BarcodeBean implements BarcodeBeanLocal { ...@@ -130,7 +130,7 @@ public class BarcodeBean implements BarcodeBeanLocal {
if (eventUser.getTokenCode() == null) { if (eventUser.getTokenCode() == null) {
String newCode = null; String newCode = null;
do { do {
newCode = PasswordFunctions.generateRandomString(10, BarcodeBeanLocal.TEXTCODE_CHARACTER_MAP); newCode = EVENTUSER_TOKEN_TEXTCODEPREFIX + PasswordFunctions.generateRandomString(10, BarcodeBeanLocal.TEXTCODE_CHARACTER_MAP);
} while (userBean.findUserByCodeToken(newCode) != null); } while (userBean.findUserByCodeToken(newCode) != null);
logger.info("Updating EventUser {} with code {}", eventUser.getId(), newCode); logger.info("Updating EventUser {} with code {}", eventUser.getId(), newCode);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!