Skip to content

Commit

Permalink
AUTH-33
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Jan 25, 2023
1 parent 28ef8ce commit 6710c75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Expand Up @@ -15,6 +15,7 @@
*/
package org.appng.application.authentication;

import java.io.File;
import java.util.List;

import javax.persistence.EntityManager;
Expand Down Expand Up @@ -59,6 +60,9 @@ public void setup() throws Exception {
protected List<Property> getPlatformProperties(String prefix) {
List<Property> platformProperties = super.getPlatformProperties(prefix);
platformProperties.add(new SimpleProperty(prefix + Platform.Property.MAX_LOGIN_ATTEMPTS, "3"));
platformProperties.add(new SimpleProperty(prefix + Platform.Property.APPNG_DATA, "."));
// JDK-8254876 first segment of Path must exist!
new File("target/uploads").mkdirs();
return platformProperties;
}

Expand Down
Expand Up @@ -15,10 +15,12 @@
*/
package org.appng.application.authentication.webform;

import java.io.File;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;

import org.appng.api.Platform;
import org.appng.api.Scope;
import org.appng.api.Session;
import org.appng.api.SiteProperties;
Expand Down Expand Up @@ -110,6 +112,15 @@ public void testViaUrlInvalidLang() {
Assert.assertEquals(Locale.ENGLISH, environment.getLocale());
}

@Override
protected List<Property> getPlatformProperties(String prefix) {
List<Property> platformProperties = super.getPlatformProperties(prefix);
platformProperties.add(new SimpleProperty(prefix + Platform.Property.APPNG_DATA, "."));
// JDK-8254876 first segment of Path must exist!
new File("target/uploads").mkdirs();
return platformProperties;
}

@Override
protected List<Property> getSiteProperties(String prefix) {
List<Property> siteProperties = super.getSiteProperties(prefix);
Expand Down

0 comments on commit 6710c75

Please sign in to comment.