mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-23 16:05:34 +00:00

- overwrite myth/auth config with castopod app needs - create custom views for users authentication - add admin area bootstrapped by admin controller - shift podcast and episodes crud to admin area - reorganize view layouts - update docs for database migration - add myth-auth to DEPENDENCIES.md closes #11
31 lines
706 B
PHP
31 lines
706 B
PHP
<?php
|
|
/**
|
|
* Class UserSeeder
|
|
* Inserts 'admin' user in users table for testing purposes
|
|
*
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace App\Database\Seeds;
|
|
|
|
use CodeIgniter\Database\Seeder;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
$data = [
|
|
'username' => 'admin',
|
|
'email' => 'admin@castopod.com',
|
|
'password_hash' =>
|
|
// password: AGUehL3P
|
|
'$2y$10$TXJEHX/djW8jtzgpDVf7dOOCGo5rv1uqtAYWdwwwkttQcDkAeB2.6',
|
|
'active' => 1,
|
|
];
|
|
|
|
$this->db->table('users')->insert($data);
|
|
}
|
|
}
|