Foros de discusión

Can't Login after creating account

sokoun chhay, modificado hace 13 años.

Can't Login after creating account

New Member Mensajes: 6 Fecha de incorporación: 24/06/10 Mensajes recientes
Dear team,

I created the liferay account through the API, after creating there was the user in the database, but i can't login to the liferay using the account.

can anyone help me to resolve this problem?
thumbnail
Georaj K, modificado hace 13 años.

RE: Can't Login after creating account

Junior Member Mensajes: 64 Fecha de incorporación: 31/03/10 Mensajes recientes
Hi


sokoun chhay:
Dear team,

I created the liferay account through the API, after creating there was the user in the database, but i can't login to the liferay using the account.

can anyone help me to resolve this problem?




I didn't get your doubt can able to show error lines further





g.r.k's
Sultee khan, modificado hace 13 años.

RE: Can't Login after creating account

Regular Member Mensajes: 145 Fecha de incorporación: 31/10/09 Mensajes recientes
Did you insert a user through web service or ?
Which version of Liferay are you using?
thumbnail
Tanweer Ahmed ., modificado hace 1 año.

RE: Can't Login after creating account

Expert Mensajes: 322 Fecha de incorporación: 11/03/10 Mensajes recientes
sokoun chhay:
Dear team,

I created the liferay account through the API, after creating there was the user in the database, but i can't login to the liferay using the account.

can anyone help me to resolve this problem?


hi sokoun ,

What do you mean by liferay account through the API ? Do you mean account with Liferay.com OR Are you using UserLocalServiceUtil for creating an Account ?
sokoun chhay, modificado hace 13 años.

RE: Can't Login after creating account

New Member Mensajes: 6 Fecha de incorporación: 24/06/10 Mensajes recientes
Hi,
I am using UserLocalServiceUtil, i am using Liferay version 5.2.3.
after creating the account, I cannot login.
thumbnail
Tanweer Ahmed ., modificado hace 1 año.

RE: Can't Login after creating account

Expert Mensajes: 322 Fecha de incorporación: 11/03/10 Mensajes recientes
Hello Sokoun,

Goto control panel--> In the left frame click on Users under Portal Heading.You can see the users details on the right side frame.If your username is not mentioned there,probably your account is not created because of some error.

Use the following code to create an user with the portal.

User user = UserServiceUtil.addUser(long companyId,
		boolean autoPassword, java.lang.String password1,
		java.lang.String password2, boolean autoScreenName,
		java.lang.String screenName, java.lang.String emailAddress,
		java.lang.String openId, java.util.Locale locale,
		java.lang.String firstName, java.lang.String middleName,
		java.lang.String lastName, int prefixId, int suffixId, boolean male,
		int birthdayMonth, int birthdayDay, int birthdayYear,
		java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
		long[] roleIds, long[] userGroupIds, boolean sendEmail,
		com.liferay.portal.service.ServiceContext serviceContext);

sokoun chhay, modificado hace 13 años.

RE: Can't Login after creating account

New Member Mensajes: 6 Fecha de incorporación: 24/06/10 Mensajes recientes
thanks for your information,

I have created the account successfully, but I cannot log in using the information.

are there any further steps in order to create account and log in using the information?
Anshul Gupta, modificado hace 13 años.

RE: Can't Login after creating account

Regular Member Mensajes: 114 Fecha de incorporación: 5/02/10 Mensajes recientes
Check if you are using screenname or email for authentication and whatever you are using is not null?

Thanks
Anshul
sokoun chhay, modificado hace 13 años.

RE: Can't Login after creating account

New Member Mensajes: 6 Fecha de incorporación: 24/06/10 Mensajes recientes
both screen name and email are presented in the database, but I still cannot log in using the information of the users.

any idea for this ?
thumbnail
Saranya Sethurajan, modificado hace 13 años.

RE: Can't Login after creating account

Junior Member Mensajes: 57 Fecha de incorporación: 8/10/09 Mensajes recientes
After creating User,whether you have created password to that user? Screen name and email has taken to database once you create user, after creating the password only you can able to access that user as a login.
sokoun chhay, modificado hace 13 años.

RE: Can't Login after creating account

New Member Mensajes: 6 Fecha de incorporación: 24/06/10 Mensajes recientes
yes, sure. I have created the encrypted password, screen name and email address.
I noticed that, after i login I see the information of login last date and time in the database, but i cannot access liferay home.

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException

root cause

java.lang.NullPointerException

note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.

here's the error message I got after I log in.
any help?
thumbnail
Koen Vermeulen, modificado hace 11 años.

RE: Can't Login after creating account

New Member Mensajes: 13 Fecha de incorporación: 16/02/10 Mensajes recientes
I had the same problem, i create new users using the webservice.
Im using 6.1.1 CE - after calling the addUser() service I had to do also a updateStatus(userId,0)
In this way new users get approved and show up in control panel

good luck
thumbnail
Fernando Fernandez, modificado hace 10 años.

RE: Can't Login after creating account

Expert Mensajes: 396 Fecha de incorporación: 22/08/07 Mensajes recientes
Koen Vermeulen:
updateStatus(userId,0)


Worked for me, also! :-)

Thanks.