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
/** | |
* 指定のメールアドレスのアクティベーションコードを再送する | |
*/ | |
protected function resendActivationCode(Request $request) { | |
// 古いアクティベーションコードを削除 | |
Activation::removeExpired(); | |
// ユーザーを確認 | |
$user = Sentinel::findByCredentials(['email' => base64_decode($request->email)]); | |
if (is_null($user)) { | |
return redirect('login')->with(['myerror' => trans('sentinel.invalid_activation_params')]); |
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
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Foundation\Auth\ResetsPasswords; | |
use Sentinel; | |
use Reminder; | |
use Illuminate\Http\Request; |
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
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Foundation\Auth\SendsPasswordResetEmails; | |
use Reminder; | |
use Sentinel; | |
use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification; | |
use Illuminate\Http\Request; |
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
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Foundation\Auth\AuthenticatesUsers; | |
use Illuminate\Http\Request; | |
use Cartalyst\Sentinel\Checkpoints\NotActivatedException; | |
use Cartalyst\Sentinel\Checkpoints\ThrottlingException; | |
use Sentinel; | |
class LoginController extends Controller | |
{ |
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
<?php | |
namespace App\Http\Controllers\Sentinel; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Activation; | |
use Sentinel; | |
class ActivateController extends Controller |
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
<?php | |
namespace App\Notifications; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Notifications\Notification; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Notifications\Messages\MailMessage; | |
class RegisterNotify extends Notification | |
{ | |
use Queueable; | |
/** 認証コード*/ |
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
<?php | |
if (! empty($greeting)) { | |
echo $greeting, "\n\n"; | |
} else { | |
echo $level == 'error' ? 'Error!' : 'Hello!', "\n\n"; | |
} | |
if (! empty($introLines)) { | |
echo implode("\n", $introLines), "\n\n"; | |
} | |
if (isset($actionText)) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<style type="text/css" rel="stylesheet" media="all"> | |
/* Media Queries */ | |
@media only screen and (max-width: 500px) { | |
.button { | |
width: 100% !important; |
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
<?php | |
return [ | |
// ユーザー登録関連 | |
'activate_title' => 'ユーザー登録を完了してください', | |
'after_register' => 'ご登録いただいたメールアドレスに、登録を完了するためのリンクを書いたメールを送信しました。メールを開いて、リンクを押して、ユーザー登録を完了させたら、以下からログインしてください。', | |
'register_user_title' => 'ユーザー登録', | |
'register_user_name' => '様', | |
'register_user_intro' => 'へのユーザー登録を完了するには、以下のボタン(あるいはリンク)をクリックしてください。', | |
'register_user_button' => 'ユーザーを有効にする', | |
'register_user_outro' => '----', |
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
<?php | |
namespace App\Http\Controllers\Auth; | |
use Activation; | |
use Mail; | |
use Sentinel; | |
use App\User; | |
use App\Http\Controllers\Controller; | |
use App\Notifications\RegisterNotify; | |
use Illuminate\Support\Facades\Validator; | |
use Illuminate\Foundation\Auth\RegistersUsers; |
NewerOlder