Enonic version: 6.4.1
OS: Windows 10
Hi everybody
I try to login at this
var auth = require(’/lib/xp/auth’);
var result = auth.login({
user: ‘user’,
password: ‘password’
});
But I get this message error
java.lang.NoSuchFieldError: BRANCH_SECURITY
Thank you for your help
aro
2
Is the application where it fails pointing to an older version of XP?
Check your build.gradle or gradle.properties. Try making it use 6.4.1, rebuild and redeploy the app.
In gradle.properties:
xpVersion = 6.4.1
And in build.gradle:
include "com.enonic.xp:lib-auth:${xpVersion}"
1 Like
Thank you aro
I haven’t realized to change the xpVersion. I tested again and It works
1 Like