Add extra field on login form

264 views Asked by At

I'm using FOSUserBundle in my Symfony3 app. I have been requested to add an extra layer of security to the login page.

Let's say I get a custom key string (saved on the user computer) with JQuery.

I need to grab that key, and then send it along with the user credentials for verification to Symfony. That key will be stored in the database (I was thinking a new column in the user table) and when the user tries to log into the app, if there's no key or the key is different, it will give an error.

I read the documentation, and the closest topic to my needs is this one.

Except that I have to compare the token I send with the one in the database.

Thanks in advance for any help!

0

There are 0 answers