User can not register to RAM
We run the following codes to add user to RAM:
RAMUser user = session.getUser(email);
user.setName(name);
user.setEmail(email);
session.put(user, new RAMStatusMonitor());
The above codes run successfully, then we use following codes to check if user is registered:
RAMUser user = session.getUser(email);
if(user.isRegistered()) {
...
}
The check of user.isRegistered() return true. But the problem is this user still can not login to RAM. When he visit RAM, it always ask him to register RAM. The user must click "register" button to visit RAM.
Is this check for registered user not correct? Thanks.
RAMUser user = session.getUser(email);
user.setName(name);
user.setEmail(email);
session.put(user, new RAMStatusMonitor());
The above codes run successfully, then we use following codes to check if user is registered:
RAMUser user = session.getUser(email);
if(user.isRegistered()) {
...
}
The check of user.isRegistered() return true. But the problem is this user still can not login to RAM. When he visit RAM, it always ask him to register RAM. The user must click "register" button to visit RAM.
Is this check for registered user not correct? Thanks.
5 answers
On 3/3/2011 1:33 PM, Rich Kulp wrote:
One more thing:
RAMUser user =
session.getUser(email);
user.setName(name);
user.setEmail(email);
session.put(user, new RAMStatusMonitor());
will only work correctly if email is your Userid field. This is
different than login field. USERID is the field in LDAP that is
configured to be unique identification of the user. LOGINID is the field
in LDAP that the user uses to login. They are not necessarily the same
fields.
Is your system configured so that email is the USERID.
If they were configured differently then your code would create a user
that has a userid of email, but when the user actually logs in they
would create a userid of their userid, not their email.
If they were configured to be the same, then there isn't a problem.
--
Rich Kulp
Rational Asset Manager developer
One more thing:
RAMUser user =
session.getUser(email);
user.setName(name);
user.setEmail(email);
session.put(user, new RAMStatusMonitor());
will only work correctly if email is your Userid field. This is
different than login field. USERID is the field in LDAP that is
configured to be unique identification of the user. LOGINID is the field
in LDAP that the user uses to login. They are not necessarily the same
fields.
Is your system configured so that email is the USERID.
If they were configured differently then your code would create a user
that has a userid of email, but when the user actually logs in they
would create a userid of their userid, not their email.
If they were configured to be the same, then there isn't a problem.
--
Rich Kulp
Rational Asset Manager developer
Hi Rich,
Thank you for your information, we will check it.
Thank you for your information, we will check it.
Hi,
Like I said this page ALWAYS shows up the first time the user ever logs
in. It is there to allow the user to customize their preferences.
All programmatic registration does is to create the appropriate user
entry in the database.
--
Rich Kulp
Rational Asset Manager developer