%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/water/vendor/dektrium/yii2-user/docs/ |
Upload File : |
# Console commands ## Setup To enable console commands, you need to add module into console config of you app. `/config/console.php` in yii2-app-basic template, or `/console/config/main.php` in yii2-app-advanced. ```php return [ 'id' => 'app-console', 'modules' => [ 'user' => [ 'class' => 'dektrium\user\Module', ], ], ... ``` ## Available console actions - **user/confirm** Confirms a user. - **user/create** Creates new user account. - **user/delete** Deletes a user. - **user/password** Updates user's password. ### user/confirm Confirms a user by setting confirmed_at field to current time. ```sh ./yii user/confirm <search> [...options...] - search (required): string Email or username ``` ### user/create This command creates new user account. If password is not set, this command will generate new 8-char password. After saving user to database, this command uses mailer component to send credentials (username and password) to user via email. ```sh ./yii user/create <email> <username> [password] [...options...] - email (required): string Email address - username (required): string Username - password: null|string Password (if null it will be generated automatically) ``` ### user/delete Deletes a user. ```sh ./yii user/delete <search> [...options...] - search (required): string Email or username ``` ### user/password Updates user's password to given. ```sh ./yii user/password <search> <password> [...options...] - search (required): string Email or username - password (required): string New password ```