games647 / FlexibleLogin

A Sponge minecraft server plugin for second factor authentication

Home Page:https://forums.spongepowered.org/t/8872

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BCrypt secret

Angrigo opened this issue · comments

Hello, could we have the possibility to set a bcrypt hash? I'm planning to build another login system using the same database so I need the hash to check password.
Also, could you update $2y$ bcrypt prefix to $2a$ ? It seems newer

Also, could you update $2y$ bcrypt prefix to $2a$ ? It seems newer

There is actually no difference (ref). It was changed to 2y to provide compatibility with PHP.

Hello, could we have the possibility to set a bcrypt hash?

The user object has already a method to set the hash. Only afterwards the change have to be flushed to the database.