このコミットが含まれているのは:
dragon1211 2022-01-27 23:43:03 -08:00
コミット 8373736665
17個のファイルの変更4343行の追加703行の削除

バイナリ
.DS_Store vendored

バイナリファイルは表示されません。

バイナリ
backend/.DS_Store vendored

バイナリファイルは表示されません。

ファイルの表示

@ -19,7 +19,7 @@ BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_LIFETIME=150
MEMCACHED_HOST=127.0.0.1

ファイルの表示

@ -1,5 +1,5 @@
APP_NAME=KIKI
APP_ENV=local
APP_ENV=production
APP_KEY=
APP_DEBUG=false
SITE_URL=https://kikikan.jp
@ -19,7 +19,7 @@ BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_LIFETIME=150
MEMCACHED_HOST=127.0.0.1

ファイルの表示

@ -10,11 +10,9 @@ use Illuminate\Support\Facades\Log;
use App\Models\LoginLimits;
// use App\Models\LoginLimits;
trait AuthenticationTrait {
private function makeSession ($guard, $db) {
session()->regenerate();
//session()->regenerate();
if (!session()->has($guard)) {
// 認証されたデータのpasswordとremember_token以外を把握する
@ -36,6 +34,15 @@ trait AuthenticationTrait {
return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id']]];
}
}
if (session()->has($this->getGuard())) {
if (null !== ($get = $this->getModel()->where('id', session()->get($this->getGuard())['id'])->first())) { // トークンがある場合
// セッションを想像する
$login_user_datum = $this->makeSession($this->getGuard(), $get->toArray());
return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id']]];
}
}
return ['status_code' => 202];
}
@ -98,11 +105,11 @@ trait AuthenticationTrait {
}
// 既にセッションがあれば、ログアウトします。
if (Session::has('children')) Session::forget('children');
if (Session::has('fathers')) Session::forget('fathers');
if (Session::has('admins')) Session::forget('admins');
unset($_COOKIE['remember_token']);
setcookie('remember_token', '', time() - 3600, '/', $_SERVER['HTTP_HOST'], 0, 1);
//if (Session::has('children')) Session::forget('children');
//if (Session::has('fathers')) Session::forget('fathers');
//if (Session::has('admins')) Session::forget('admins');
//unset($_COOKIE['remember_token']);
//setcookie('remember_token', '', time() - 3600, '/', $_SERVER['HTTP_HOST'], 0, 1);
if ($r->remember_token == 'true') {
$token = bin2hex(random_bytes(24));

ファイルの表示

@ -117,14 +117,22 @@ class FathersController extends Controller {
];
try {
// DBの値の準備。
DB::beginTransaction();
// DBに入ります。
EmailActivation::create($create);
$emac = new EmailActivation;
$emac->fill($create);
$emac->push();
// メールを送ります。
Mail::to($r->email)->send(new FathersRegistrationTemporaryMail($token));
DB::commit();
} catch (\Throwable $e) {
// 失敗
Log::critical($e->getMessage());
DB::rollback();
return ['status_code' => 400, 'error_messages' => '登録に失敗しました。'];
}

109
backend/composer.lock generated
ファイルの表示

@ -1275,16 +1275,16 @@
},
{
"name": "laravel/framework",
"version": "v8.80.0",
"version": "v8.81.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "8949a2e46b0f274f39c61eee8d5de1dc6a1f686b"
"reference": "9cc0efd724ce67a190b1695ba31a27bbb1ae9177"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/8949a2e46b0f274f39c61eee8d5de1dc6a1f686b",
"reference": "8949a2e46b0f274f39c61eee8d5de1dc6a1f686b",
"url": "https://api.github.com/repos/laravel/framework/zipball/9cc0efd724ce67a190b1695ba31a27bbb1ae9177",
"reference": "9cc0efd724ce67a190b1695ba31a27bbb1ae9177",
"shasum": ""
},
"require": {
@ -1317,7 +1317,7 @@
"symfony/var-dumper": "^5.4",
"tijsverkoyen/css-to-inline-styles": "^2.2.2",
"vlucas/phpdotenv": "^5.4.1",
"voku/portable-ascii": "^1.4.8"
"voku/portable-ascii": "^1.6.1"
},
"conflict": {
"tightenco/collect": "<5.5.33"
@ -1444,7 +1444,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2022-01-18T15:51:42+00:00"
"time": "2022-01-25T16:41:46+00:00"
},
{
"name": "laravel/nexmo-notification-channel",
@ -1771,16 +1771,16 @@
},
{
"name": "league/commonmark",
"version": "2.1.1",
"version": "2.2.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/commonmark.git",
"reference": "17d2b9cb5161a2ea1a8dd30e6991d668e503fb9d"
"reference": "f8afb78f087777b040e0ab8a6b6ca93f6fc3f18a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/17d2b9cb5161a2ea1a8dd30e6991d668e503fb9d",
"reference": "17d2b9cb5161a2ea1a8dd30e6991d668e503fb9d",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/f8afb78f087777b040e0ab8a6b6ca93f6fc3f18a",
"reference": "f8afb78f087777b040e0ab8a6b6ca93f6fc3f18a",
"shasum": ""
},
"require": {
@ -1788,6 +1788,7 @@
"league/config": "^1.1.1",
"php": "^7.4 || ^8.0",
"psr/event-dispatcher": "^1.0",
"symfony/deprecation-contracts": "^2.1 || ^3.0",
"symfony/polyfill-php80": "^1.15"
},
"require-dev": {
@ -1813,7 +1814,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "2.2-dev"
"dev-main": "2.3-dev"
}
},
"autoload": {
@ -1870,7 +1871,7 @@
"type": "tidelift"
}
],
"time": "2022-01-02T18:25:06+00:00"
"time": "2022-01-25T14:37:33+00:00"
},
{
"name": "league/config",
@ -2205,16 +2206,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.55.2",
"version": "2.56.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "8c2a18ce3e67c34efc1b29f64fe61304368259a2"
"reference": "626ec8cbb724cd3c3400c3ed8f730545b744e3f4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/8c2a18ce3e67c34efc1b29f64fe61304368259a2",
"reference": "8c2a18ce3e67c34efc1b29f64fe61304368259a2",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/626ec8cbb724cd3c3400c3ed8f730545b744e3f4",
"reference": "626ec8cbb724cd3c3400c3ed8f730545b744e3f4",
"shasum": ""
},
"require": {
@ -2231,7 +2232,7 @@
"kylekatarnls/multi-tester": "^2.0",
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.54",
"phpstan/phpstan": "^0.12.54 || ^1.0",
"phpunit/phpunit": "^7.5.20 || ^8.5.14",
"squizlabs/php_codesniffer": "^3.4"
},
@ -2297,7 +2298,7 @@
"type": "tidelift"
}
],
"time": "2021-12-03T14:59:52+00:00"
"time": "2022-01-21T17:08:38+00:00"
},
{
"name": "nette/schema",
@ -2363,16 +2364,16 @@
},
{
"name": "nette/utils",
"version": "v3.2.6",
"version": "v3.2.7",
"source": {
"type": "git",
"url": "https://github.com/nette/utils.git",
"reference": "2f261e55bd6a12057442045bf2c249806abc1d02"
"reference": "0af4e3de4df9f1543534beab255ccf459e7a2c99"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/utils/zipball/2f261e55bd6a12057442045bf2c249806abc1d02",
"reference": "2f261e55bd6a12057442045bf2c249806abc1d02",
"url": "https://api.github.com/repos/nette/utils/zipball/0af4e3de4df9f1543534beab255ccf459e7a2c99",
"reference": "0af4e3de4df9f1543534beab255ccf459e7a2c99",
"shasum": ""
},
"require": {
@ -2442,9 +2443,9 @@
],
"support": {
"issues": "https://github.com/nette/utils/issues",
"source": "https://github.com/nette/utils/tree/v3.2.6"
"source": "https://github.com/nette/utils/tree/v3.2.7"
},
"time": "2021-11-24T15:47:23+00:00"
"time": "2022-01-24T11:29:14+00:00"
},
{
"name": "nexmo/laravel",
@ -5768,16 +5769,16 @@
},
{
"name": "voku/portable-ascii",
"version": "1.5.6",
"version": "1.6.1",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-ascii.git",
"reference": "80953678b19901e5165c56752d087fc11526017c"
"reference": "87337c91b9dfacee02452244ee14ab3c43bc485a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/80953678b19901e5165c56752d087fc11526017c",
"reference": "80953678b19901e5165c56752d087fc11526017c",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/87337c91b9dfacee02452244ee14ab3c43bc485a",
"reference": "87337c91b9dfacee02452244ee14ab3c43bc485a",
"shasum": ""
},
"require": {
@ -5814,7 +5815,7 @@
],
"support": {
"issues": "https://github.com/voku/portable-ascii/issues",
"source": "https://github.com/voku/portable-ascii/tree/1.5.6"
"source": "https://github.com/voku/portable-ascii/tree/1.6.1"
},
"funding": [
{
@ -5838,7 +5839,7 @@
"type": "tidelift"
}
],
"time": "2020-11-12T00:07:28+00:00"
"time": "2022-01-24T18:55:24+00:00"
},
{
"name": "vonage/client",
@ -6337,16 +6338,16 @@
},
{
"name": "fakerphp/faker",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/FakerPHP/Faker.git",
"reference": "b85e9d44eae8c52cca7aa0939483611f7232b669"
"reference": "2e77a868f6540695cf5ebf21e5ab472c65f47567"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/FakerPHP/Faker/zipball/b85e9d44eae8c52cca7aa0939483611f7232b669",
"reference": "b85e9d44eae8c52cca7aa0939483611f7232b669",
"url": "https://api.github.com/repos/FakerPHP/Faker/zipball/2e77a868f6540695cf5ebf21e5ab472c65f47567",
"reference": "2e77a868f6540695cf5ebf21e5ab472c65f47567",
"shasum": ""
},
"require": {
@ -6371,7 +6372,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "v1.17-dev"
"dev-main": "v1.18-dev"
}
},
"autoload": {
@ -6396,9 +6397,9 @@
],
"support": {
"issues": "https://github.com/FakerPHP/Faker/issues",
"source": "https://github.com/FakerPHP/Faker/tree/v1.17.0"
"source": "https://github.com/FakerPHP/Faker/tree/v1.18.0"
},
"time": "2021-12-05T17:14:47+00:00"
"time": "2022-01-23T17:56:23+00:00"
},
{
"name": "filp/whoops",
@ -6524,16 +6525,16 @@
},
{
"name": "laravel/sail",
"version": "v1.13.0",
"version": "v1.13.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
"reference": "a14125e71779c99e27979431a66ea2793aa6ae50"
"reference": "b9749028732eca8080c26d01cd88a2f3549c2e3e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/a14125e71779c99e27979431a66ea2793aa6ae50",
"reference": "a14125e71779c99e27979431a66ea2793aa6ae50",
"url": "https://api.github.com/repos/laravel/sail/zipball/b9749028732eca8080c26d01cd88a2f3549c2e3e",
"reference": "b9749028732eca8080c26d01cd88a2f3549c2e3e",
"shasum": ""
},
"require": {
@ -6580,20 +6581,20 @@
"issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail"
},
"time": "2022-01-18T18:06:55+00:00"
"time": "2022-01-20T15:31:25+00:00"
},
{
"name": "mockery/mockery",
"version": "1.4.4",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/mockery/mockery.git",
"reference": "e01123a0e847d52d186c5eb4b9bf58b0c6d00346"
"reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mockery/mockery/zipball/e01123a0e847d52d186c5eb4b9bf58b0c6d00346",
"reference": "e01123a0e847d52d186c5eb4b9bf58b0c6d00346",
"url": "https://api.github.com/repos/mockery/mockery/zipball/c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac",
"reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac",
"shasum": ""
},
"require": {
@ -6650,9 +6651,9 @@
],
"support": {
"issues": "https://github.com/mockery/mockery/issues",
"source": "https://github.com/mockery/mockery/tree/1.4.4"
"source": "https://github.com/mockery/mockery/tree/1.5.0"
},
"time": "2021-09-13T15:28:59+00:00"
"time": "2022-01-20T13:18:17+00:00"
},
{
"name": "myclabs/deep-copy",
@ -7457,16 +7458,16 @@
},
{
"name": "phpunit/phpunit",
"version": "9.5.11",
"version": "9.5.13",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "2406855036db1102126125537adb1406f7242fdd"
"reference": "597cb647654ede35e43b137926dfdfef0fb11743"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2406855036db1102126125537adb1406f7242fdd",
"reference": "2406855036db1102126125537adb1406f7242fdd",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/597cb647654ede35e43b137926dfdfef0fb11743",
"reference": "597cb647654ede35e43b137926dfdfef0fb11743",
"shasum": ""
},
"require": {
@ -7544,7 +7545,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.11"
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.13"
},
"funding": [
{
@ -7556,7 +7557,7 @@
"type": "github"
}
],
"time": "2021-12-25T07:07:57+00:00"
"time": "2022-01-24T07:33:35+00:00"
},
{
"name": "sebastian/cli-parser",

ファイルの表示

@ -31,7 +31,7 @@ return [
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
'lifetime' => env('SESSION_LIFETIME', 150),
'expire_on_close' => true,

ファイルの表示

@ -12897,7 +12897,11 @@ categories: [project]
@font-face {
font-family: "iconfont";
src: url(/fonts/iconfont.eot?9bd2f8e21fb68f3cb69f306c7a5a07d2);
<<<<<<< HEAD
src: url(/fonts/iconfont.eot?9bd2f8e21fb68f3cb69f306c7a5a07d2) format("eot"), url(/fonts/iconfont.woff?72290a51f520574be856b3621acc29a1) format("woff"), url(/fonts/iconfont.ttf?e240ce427caf7549e576c77b39a1d3f1) format("truetype"), url(/fonts/iconfont.svg?9e48c54f8bbb472c1c286234fdd6636f) format("svg");
=======
src: url(/fonts/iconfont.eot?9bd2f8e21fb68f3cb69f306c7a5a07d2) format("eot"), url(/fonts/iconfont.woff?72290a51f520574be856b3621acc29a1) format("woff"), url(/fonts/iconfont.ttf?e240ce427caf7549e576c77b39a1d3f1) format("truetype"), url(/fonts/iconfont.svg?d812f238f7ec32f5cb5ebd322f320a02) format("svg");
>>>>>>> 979b70820792a84b53d44fcdd70644d3690ce8d3
font-weight: normal;
font-style: normal;
}

ファイル差分が大きすぎるため省略します 差分を読み込み

ファイルの表示

@ -380,7 +380,9 @@ const ParentMeetingAdd = () => {
: <p className="text-center">子はありません</p>
}
</div>
<div className="edit-set edit-set-mt15">
<p>PDFの容量/画像の容量が大きいと送信までに5分ほどかかる恐れがあります容量を圧縮してからアップロードをお勧めします</p>
</div>
<UploadingProgress show={submit}/>
<LoadingButton

ファイルの表示

@ -3,6 +3,7 @@ services:
app:
build: ./infra/php
volumes:
- ./infra/php/php.ini:/usr/local/etc/php/php.ini
- ./backend:/work
web:

バイナリ
infra/.DS_Store vendored ノーマルファイル

バイナリファイルは表示されません。

ファイルの表示

@ -27,6 +27,9 @@ server {
charset utf-8;
client_max_body_size 0;
# アップロードの許容制限アップ
fastcgi_read_timeout 99999;
location / {
try_files $uri $uri/ /index.php?$query_string;
}

ファイルの表示

@ -14,6 +14,9 @@ server {
charset utf-8;
client_max_body_size 0;
# アップロードの許容制限アップ
fastcgi_read_timeout 99999;
location / {
try_files $uri $uri/ /index.php?$query_string;
}

ファイルの表示

@ -1,10 +1,10 @@
zend.exception_ignore_args = off
expose_php = on
max_execution_time = 30
max_execution_time=9999999
max_input_vars = 1000
upload_max_filesize = 64M
post_max_size = 128M
memory_limit = 256M
upload_max_filesize = -1
post_max_size = -1
memory_limit = -1
error_reporting = E_ALL
display_errors = on
display_startup_errors = on