This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e54e907
commit c9e3fdf
Showing
11 changed files
with
416 additions
and
214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Password extends Model | ||
{ | ||
|
||
/** | ||
* The attributes that are mass assignable. | ||
* | ||
* @var array | ||
*/ | ||
protected $fillable = [ | ||
'user_id', | ||
'activation_code', | ||
'status' | ||
|
||
]; | ||
|
||
|
||
public function User() | ||
{ | ||
return $this->belongsTo('App\User'); | ||
} | ||
|
||
|
||
} |
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
| | ||
*/ | ||
|
||
'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | ||
'host' => env('MAIL_HOST', 'smtp.gmail.com'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
|
@@ -42,7 +42,7 @@ | |
| | ||
*/ | ||
|
||
'port' => env('MAIL_PORT', 587), | ||
'port' => env('MAIL_PORT', 465), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
|
@@ -55,7 +55,7 @@ | |
| | ||
*/ | ||
|
||
'from' => ['address' => null, 'name' => null], | ||
'from' => ['address' => "[email protected]", 'name' => "GDG VIT"], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
|
33 changes: 33 additions & 0 deletions
33
database/migrations/2016_09_02_204817_create_forgot_password_table.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,33 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class CreateForgotPasswordTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('passwords', function (Blueprint $table) { | ||
$table->increments('id'); | ||
$table->timestamps(); | ||
$table->integer('user_id')->unique(); | ||
$table->integer('activation_code'); | ||
$table->integer('status')->default(0); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('passwords'); | ||
} | ||
} |
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 @@ | ||
@extends('layouts.app') | ||
<link rel="stylesheet" href="{{url('css/problems.css')}}"> | ||
|
||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<form name="#" id="award-form" method="POST" action="{{ url('/send/token') }}"> | ||
{{ csrf_field() }} | ||
<div class="col m8 l8 push-l2 push-l2"> | ||
<div class="row"> | ||
<div class="col m12 l12"> | ||
<div class="data-card"> | ||
<div class="card-head"> | ||
<h3>Forgot Password</h3> | ||
</div> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col m4 l4 s12"> | ||
<div class="prob-field form-group{{ $errors->has('contact') ? ' has-error' : '' }}"> | ||
<h5> Enter the contact number associated with your account</h5> | ||
</div> | ||
</div> | ||
<div class="col m6 l6 s12"> | ||
<div class="input-field form-group{{ $errors->has('contact') ? ' has-error' : '' }}"> | ||
<input type="text" name="contact"> | ||
</div> | ||
</div> | ||
|
||
<button type = "submit" class="btn btn-primary">Get reset token</button> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<br> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
@endsection |
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 @@ | ||
@extends('layouts.app') | ||
<link rel="stylesheet" href="{{url('css/problems.css')}}"> | ||
|
||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<form name="#" id="award-form" method="POST" action="{{ url('/send/token') }}"> | ||
{{ csrf_field() }} | ||
<div class="col m8 l8 push-l2 push-l2"> | ||
<div class="row"> | ||
<div class="col m12 l12"> | ||
<div class="data-card"> | ||
<div class="card-head"> | ||
<h3>Verify Token</h3> | ||
</div> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col m4 l4 s12"> | ||
<div class="prob-field form-group{{ $errors->has('token') ? ' has-error' : '' }}"> | ||
<h5> Enter Token</h5> | ||
</div> | ||
</div> | ||
<div class="col m6 l6 s12"> | ||
<div class="input-field form-group{{ $errors->has('token') ? ' has-error' : '' }}"> | ||
<input type="text" name="token"> | ||
</div> | ||
</div> | ||
<button type = "submit" class="btn btn-primary">Verify Token</button> | ||
</div> | ||
</div> | ||
</div> | ||
<br> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
@endsection |