🔧 Change default user credentials

This commit is contained in:
MarceauKa 2020-11-11 11:17:24 +01:00
parent 34fd7bf174
commit 6b27a2805f
5 changed files with 9 additions and 6 deletions

View File

@ -30,7 +30,7 @@ class Install extends Command
}
$name = $this->ask('User name?', 'Admin');
$email = $this->ask('User email?', 'admin@example.com');
$email = $this->ask('User email?', 'shaark@example.com');
$pass = $this->ask('User pass?', 'secret');
$user = \App\User::count() ? \App\User::first() : new \App\User();

View File

@ -1,6 +1,9 @@
# Unreleased
## Changed Laravel 6.20
## Changed
- Default user email is now `shaark@example.com`
- Laravel 6.20
# 1.2.43

View File

@ -17,7 +17,7 @@ class DatabaseSeeder extends Seeder
DB::table('users')->insert([
'name' => 'Admin',
'email' => 'admin@example.com',
'email' => 'shaark@example.com',
'password' => Hash::make('secret'),
'api_token' => 'api-token-secret',
'is_admin' => 1,
@ -65,7 +65,7 @@ class DatabaseSeeder extends Seeder
'title' => config('app.name'),
'content' => [
['type' => 'url', 'name' => 'URL', 'value' => route('login')],
['type' => 'text', 'name' => 'Email', 'value' => 'admin@example.com'],
['type' => 'text', 'name' => 'Email', 'value' => 'shaark@example.com'],
['type' => 'password', 'name' => 'Mot de passe', 'value' => Str::random(12)],
['type' => 'code', 'name' => 'Code', 'value' => "<?php print \"Hello world\"; ?>"],
]

View File

@ -47,7 +47,7 @@ Once created, run `php artisan key:generate` to generate a unique key for you ap
### Migrations
Default user is `admin@example.com` with password `secret`.
Default user is `shaark@example.com` with password `secret`.
- With install command:
`php artisan shaark:install`

View File

@ -30,7 +30,7 @@ All of your data can be **private, public or both** and can be browsed by **tags
![Homepage](/resources/screenshots/home.jpg?raw=true "Homepage")
A public demo is available at [https://shaark.mka.ovh](https://shaark.mka.ovh). Credentials are **admin@example.com** and **secret**.
A public demo is available at [https://shaark.mka.ovh](https://shaark.mka.ovh). Credentials are **shaark@example.com** and **secret**.
This demo is resetted hourly.
## Documentation