A quick-and-dirty Symfony 2.7 project as an exercise to test double password authentication.
http://symfony.com/doc/current/cookbook/security/custom_password_authenticator.html
Check classic user password and check master password.
Extends UsernamePasswordToken whith a master password attribute. Master password is retrieved in the Request as a POST variable.
DoublePasswordAuthenticator is a service defined in services.yml.
Firewalls can use this service with simple_form.authenticator defined in security.yml.
Master password is currently stored as plaintext in parameters.yml.
You may want to encrypt it, using an encoder like BCryptPasswordEncoder.
You may also want to store it in some admin account and retrieve it with the EntityManager.