Skip to content

Commit

Permalink
Update install script to set admin as verified
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Sep 21, 2018
1 parent 4d2de51 commit 656f0d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
2018-09-21 DariusIII
* Chg: Update install script to set admin as verified
* Chg: Update nesbot/carbon to version 1.34.0 and fancybox to latest
* Chg: Use strpos to check line in articles in NNTP class
* Chg: Update binaries class
Expand Down
3 changes: 2 additions & 1 deletion app/Console/Commands/InstallNntmux.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ private function addAdminUser(): bool
$this->info('Adding admin user to database');
try {
User::add(env('ADMIN_USER'), env('ADMIN_PASS'), env('ADMIN_EMAIL'), 2, '', '', '', '');
} catch (\Exception $e) {
User::where('username', env('ADMIN_USER'))->update(['verified' => 1]);
} catch (\Throwable $e) {
echo $e->getMessage();
$this->error('Unable to add admin user!');

Expand Down

0 comments on commit 656f0d6

Please sign in to comment.