-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
628 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
app/webroot/theme/admin-third/Users/admin/send_activate_url.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* baserCMS : Based Website Development Project <https://basercms.net> | ||
* Copyright (c) baserCMS Users Community <https://basercms.net/community/> | ||
* | ||
* @copyright Copyright (c) baserCMS Users Community | ||
* @link https://basercms.net baserCMS Project | ||
* @package Baser.View | ||
* @since baserCMS v 0.1.0 | ||
* @license https://basercms.net/license/index.html | ||
*/ | ||
|
||
/** | ||
* [ADMIN] パスワードリセット画面 | ||
*/ | ||
$userModel = Configure::read('BcAuthPrefix.' . $currentPrefix . '.userModel'); | ||
if (!$userModel) { | ||
$userModel = 'User'; | ||
} | ||
$form_attr = ['action' => 'send_activate_url']; | ||
if ($currentPrefix !== 'front') { | ||
$form_attr[$this->request->params['prefix']] = true; | ||
} | ||
?> | ||
<div class="section"> | ||
<p> | ||
<?= __d('baser', 'パスワードを忘れた方は、登録されているメールアドレスを送信してください。')?> | ||
<?= __d('baser', 'パスワードの再設定手順をメールでお知らせします。')?> | ||
</p> | ||
<?= $this->BcForm->create($userModel, ['url' => $form_attr]) ?> | ||
<div class="submit"> | ||
<?= $this->BcForm->input( | ||
$userModel . '.email', | ||
['type' => 'text', 'size' => 34]) | ||
?> | ||
<?= $this->BcForm->submit( | ||
__d('baser', '送信'), | ||
['div' => false, 'class' => 'btn-red button bca-btn', 'data-bca-btn-status' => 'warning']) | ||
?> | ||
</div> | ||
<?= $this->BcForm->end() ?> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
app/webroot/theme/admin-third/Users/admin/sent_activate_url.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* baserCMS : Based Website Development Project <https://basercms.net> | ||
* Copyright (c) baserCMS Users Community <https://basercms.net/community/> | ||
* | ||
* @copyright Copyright (c) baserCMS Users Community | ||
* @link https://basercms.net baserCMS Project | ||
* @package Baser.View | ||
* @since baserCMS v 0.1.0 | ||
* @license https://basercms.net/license/index.html | ||
*/ | ||
|
||
/** | ||
* [ADMIN] パスワードリセット画面 | ||
*/ | ||
?> | ||
<div class="section"> | ||
<p> | ||
パスワードの再設定手順をメールで送信しました。メールの内容を確認し、パスワードを再発行してください。<br> | ||
この画面は閉じてもかまいません。 | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* baserCMS : Based Website Development Project <https://basercms.net> | ||
* Copyright (c) baserCMS Users Community <https://basercms.net/community/> | ||
* | ||
* @copyright Copyright (c) baserCMS Users Community | ||
* @link https://basercms.net baserCMS Project | ||
* @package Baser.View | ||
* @since baserCMS v 3.0.7 | ||
* @license https://basercms.net/license/index.html | ||
*/ | ||
|
||
/** | ||
* [ADMIN] アクティベート要求画面 | ||
*/ | ||
include BASER_VIEWS . 'Users' . DS . 'admin' . DS . 'send_activate_url.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/* Users schema generated on: 2021-04-02 21:00:00 : 1617364800 */ | ||
|
||
class UsersSchema extends CakeSchema { | ||
|
||
public $name = 'Users'; | ||
|
||
public $file = 'users.php'; | ||
|
||
public $connection = 'default'; | ||
|
||
public function before($event = []) { | ||
return true; | ||
} | ||
|
||
public function after($event = []) { | ||
} | ||
|
||
public $users = [ | ||
'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'], | ||
'name' => ['type' => 'string', 'null' => true, 'default' => null], | ||
'password' => ['type' => 'string', 'null' => true, 'default' => null], | ||
'real_name_1' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 50], | ||
'real_name_2' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 50], | ||
'email' => ['type' => 'string', 'null' => true, 'default' => null], | ||
'user_group_id' => ['type' => 'integer', 'null' => true, 'default' => null, 'length' => 4], | ||
'nickname' => ['type' => 'string', 'null' => true, 'default' => null], | ||
'activate_key' => ['type' => 'string', 'null' => true, 'default' => null], | ||
'activate_expire' => ['type' => 'datetime', 'null' => true, 'default' => null], | ||
'created' => ['type' => 'datetime', 'null' => true, 'default' => null], | ||
'modified' => ['type' => 'datetime', 'null' => true, 'default' => null], | ||
'indexes' => ['PRIMARY' => ['column' => 'id', 'unique' => 1]], | ||
'tableParameters' => ['charset' => 'utf8', 'collate' => 'utf8_general_ci'] | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* baserCMS : Based Website Development Project <http://basercms.net> | ||
* Copyright (c) baserCMS Users Community <http://basercms.net/community/> | ||
* | ||
* @copyright Copyright (c) baserCMS Users Community | ||
* @link https://basercms.net baserCMS Project | ||
* @package Baser.Config | ||
* @since baserCMS v 4.4.6 | ||
* @license https://basercms.net/license/index.html | ||
*/ | ||
|
||
/** | ||
* 4.4.6 バージョン アップデートスクリプト | ||
*/ | ||
|
||
/** | ||
* search_indices テーブル構造変更 | ||
*/ | ||
if($this->loadSchema('4.5.5', '', 'users', 'alter')) { | ||
$this->setUpdateLog('users テーブルの構造変更に成功しました。'); | ||
} else { | ||
$this->setUpdateLog('users テーブルの構造変更に失敗しました。', true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.