on 10-24-2007 10:19 AM
Hello,
i'm trying to create a new user using the security.api, and the user is created with all data i've added, but we get an error : "User account is not accessible due to data inconsistencies". the field logon id is not filled.
the code i'm using is as follows.
public void wdDoInit()
{
//@@begin wdDoInit()
try{
String uid = "testuser01";
Date startdate = java.sql.Date.valueOf( "2007-01-01" );
IUserFactory userfact = UMFactory.getUserFactory();
IUserMaint newUser = UMFactory.getUserFactory().newUser(uid);
newUser.setFirstName("Test");
newUser.setLastName("User");
newUser.save();
newUser.commit();
IUserAccount uacc = UMFactory.getUserAccountFactory().newUserAccount(uid,newUser.getUniqueID());
uacc.setPassword("secret");
uacc.setValidFromDate(startdate);
uacc.save();
uacc.commit();
}catch(UMException e){
System.out.println("Error Occured" + e);
}
//@@end
}
is there anybody who is facing this problem, or anybody who solved this issue, or can helping us saving this issue.
thanks in advance
We found the problem,
We had to add a numeric and /or a special charachter in the password
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.