sfdoctrineguard

Symfony sfDoctrineGuardPlugin custom login query

青春壹個敷衍的年華 提交于 2019-12-05 20:54:06
I use symfony sfDoctrineGuardPlugin to manage authentication for both frontend users and backend users. It's fine, except that I don't want frontend users to be able to login to the backend app. I can setup credentials, but credentials are checked after a user gets authenticated. What I want is to have sigin in form to never validate for a user, that is not in a backend group. How can I do this? I think I found a better solution. sfDoctrineGuard plugin has its own post validator that checks for an optional callable for user retrival. //app.yml all: sf_guard_plugin: retrieve_by_username

Migrating Existing Users and Passwords to new Symfony/sfDoctrineGuard User System

落花浮王杯 提交于 2019-12-04 16:21:00
I have an existing, non-framework-based PHP/MySQL website. It has a simple security model, with a users table with usernames and hashed (MD5) passwords. I'm currently working on "version 2" of this site, this time using Symfony, with Doctrine. The new version is working fine, and I'm using the sfDoctrineGuard plugin for my user management. I'd like to migrate my existing users into the new app with the minimum of fuss, retaining their existing usernames and passwords. My main problem, though, is that I'd like to change the password hash I'm using. The current site uses unsalted MD5 hashes of