Hi,

I want to migrate a old ZF1 application to ZF2. In the ZF1 application
the user passwords are stored in a database as a MD5 hash. In the ZF2
application I want to use Zend\Crypt\Password\Bcrypt. It is impossible
to convert the passwords.

So, I will use the following approach: If a user is logging in the first
time in the ZF2 application he is asked to enter his old MD5 hashed
password. Afterwards he is forced to enter a new password which is saved
as a Bcrypt hash.

Technically I am thinking about using two authentication adapters.
Default is the Bcrypt adapter. If it fails, the MD5 adapter should be used.

Is it possible to chain authentication adapters or should I write my own
adapter which is implementing this szenario? I already have a custom
authentication adapter for the Bcrypt authentication anyway.

Thanks and regards,

Ralf

-- 
Ralf Eggert
Geschäftsführer

Travello GmbH
An der Eiche 15
25421 Pinneberg

Geschäftsführer: Ralf Eggert
Amtsgericht Pinneberg HRB 6112 PI

Tel: 04101/8529401
Fax: 04101/8529402
E-Mail: i...@travello.de
Web: http://www.travello.de

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to