Skip to content

class Athena::PasswordHasher::Commands::UserPasswordHash
inherits Athena::Console::Command #

Hashes a password with the APH::Interface an APH::FactoryInterface returns for a user class. Mainly used to generate passwords for in-memory users, or to change passwords in the database while developing an application.

$ ./bin/console security:hash-password
$ ./bin/console security:hash-password '' 'App::User'
$ echo $PASSWORD | ./bin/console security:hash-password --no-interaction -

Note

Requires the Console component, and is not registered as a service automatically.

Constructors#

.new(hasher_factory : APH::FactoryInterface, user_classes : Array(String) = [] of String)#

View source

Methods#

#complete(input : ACON::Completion::Input, suggestions : ACON::Completion::Suggestions) : Nil#

Determines what values should be added to the possible suggestions based on the provided input.

By default this will fall back on completion of the related input argument/option, but can be overridden if needed.

View source