bubble-server/src/main/java/bubble/service/account/StandardAccountMessageService.javaZobrazit soubor
@@ -211,7 +211,7 @@ public class StandardAccountMessageService implements AccountMessageService {
String json = tokens.get(token);
if (json == null) {
log.warn("captureResponse("+type+"): regular token not found: "+token);
throw invalidEx("err.totpToken.invalid");
throw invalidEx("err.approvalToken.invalid");
}
if (NUMERIC_PATTERN.matcher(json).matches()) {
@@ -220,7 +220,7 @@ public class StandardAccountMessageService implements AccountMessageService {
json = tokens.get(numericToken);
if (json == null) {
log.warn("captureResponse("+type+"): numeric token not found: "+numericToken+" (token="+token+")");
throw invalidEx("err.totpToken.invalid");
throw invalidEx("err.approvalToken.invalid");
}
}
@@ -238,7 +238,7 @@ public class StandardAccountMessageService implements AccountMessageService {
.setTarget(amc.getMessage().getTarget());
if (data != null && !getCompletionHandler(toCreate).validate(toCreate, data)) {
throw invalidEx("err.totpToken.invalid", type+" request was invalid", json(data));
throw invalidEx("err.approvalToken.invalid", type+" request was invalid", json(data));
}
final AccountMessage message = messageDAO.create(toCreate);
+ 4- 0
bubble-server/src/main/resources/message_templates/en_US/server/post_auth/ResourceMessages.propertiesZobrazit soubor
@@ -575,3 +575,7 @@ err.entity.classInFilename.invalid=Type of object could not be determined from f
err.entity.filenameExtension.invalid=The object file must be a JSON file containing one or more objects, or a Model Archive File (ending in .zip, .tar.gz, or .tgz) containing a manifest and corresponding object files.
err.entity.fileZipFormat.invalid=The Model Archive File was not in a readable format
err.entity.manifest.required=No manifest.json file was found within the Model Archive File
# special values
msg.nextBillDate.pending=Pending
msg.nextBillDate.paymentsNotEnabled=Payments are not enabled on this system
+ 1- 1
bubble-server/src/test/resources/models/tests/auth/account_crud.jsonZobrazit soubor