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. |
5 answers
Hi,
Registering user does not prevent the screen from coming up. The first time the user logs in that screen always shows up to allow the user to configure their preferences. -- Rich Kulp Rational Asset Manager developer |
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 |
Hi Rich,
When we do the set email to user, this email id is the same one which registered in the LDAP, so I think it should be work well. But after the code run well, it still show us the page to register this user, this seems strange for me. Thanks. |
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 |
Hi Rich,
Thank you for your information, we will check it. Hi, |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.