Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login faild : Encoded password does not look like BCrypt #5

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. access to URL :http://localhost:8080/sampleAppWeb/login.xhtml
2. login : admin
3. password : admin

What is the expected output? What do you see instead?
login login successful -> Home page
but the result is : User Name and Password Not Match!
=> Encoded password does not look like BCrypt

What version of the product are you using? On what operating system?
Tomcat 7.0.42, JDK 1.7, MySQL Database

Please provide any additional information below.
stack trace tomcat :
DEBUG c.a.d.s.UserDetailsServiceImpl.loadUserByUsername Security verification 
for user 'admin'
Hibernate:
    /* select
        generatedAlias0
    from
        Person as generatedAlias0
    where
        lower(generatedAlias0.username)=:param0 */ select
            person0_.ID as ID0_,
            person0_.BIRTH_DATE as BIRTH2_0_,
            person0_.CIVILITY as CIVILITY0_,
            person0_.EMAIL as EMAIL0_,
            person0_.FIRST_NAME as FIRST5_0_,
            person0_.IS_ENABLED as IS6_0_,
            person0_.LAST_NAME as LAST7_0_,
            person0_.`PASSWORD` as PASSWORD8_0_,
            person0_.PHOTO as PHOTO0_,
            person0_.LOGIN as LOGIN0_,
            person0_.VERSION as VERSION0_
        from
            person person0_
        where
            lower(person0_.LOGIN)=? limit ?
Hibernate:
    /* load collection com.app.demo.domain.Person.securityRoles */ select
        securityro0_.PERSON_ID as PERSON1_0_1_,
        securityro0_.ROLE_ID as ROLE2_1_,
        role1_.ID as ID1_0_,
        role1_.ROLE_DESC as ROLE2_1_0_,
        role1_.ROLE_NAME as ROLE3_1_0_
    from
        person_role securityro0_
    inner join
        `role` role1_
            on securityro0_.ROLE_ID=role1_.ID
    where
        securityro0_.PERSON_ID=?
Login Failed on IllegalArgumentException
Encoded password does not look like BCrypt

Original issue reported on code.google.com by [email protected] on 8 Sep 2013 at 2:15

@GoogleCodeExporter
Copy link
Author

I fixed this problem by the new script sql (INSERT person) with encrity 
password by BCryptPasswordEncoder

Original comment by [email protected] on 8 Sep 2013 at 3:27

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant