modified: SRC/app/Http/Controllers/LoginController.php

modified:   SRC/app/Http/routes.php
	modified:   SRC/resources/views/auth/register.blade.php
	modified:   SRC/resources/views/auth/reset.blade.php
This commit is contained in:
www 2015-03-16 15:40:12 +01:00
parent fddfc69616
commit 2b1529105b
5 changed files with 17 additions and 4 deletions

View File

@ -480,3 +480,16 @@ ls
python loader
python loader.py
python loader.py
ls
git status
git pull
git pull
nano SRC/config/mail.php
git commit -a
git push
ls
ls
ls
nano SRC/config/mail.php
nano .env
nano SRC/.env

View File

@ -89,7 +89,7 @@ class LoginController extends Controller {
return View::make('auth.reset')->with('token', $token);
}
public function update($token)
public function update()
{
$credentials = Input::only('email', 'password','password_confirmation','token');
$response = Password::reset($credentials, function($user, $password)

View File

@ -24,7 +24,7 @@ Route::get('password/reset/{token}', array(
'uses' => 'LoginController@reset',
'as' => 'password.reset'
));
Route::post('password/reset/{token}', array(
Route::post('password/reset', array(
'uses' => 'LoginController@update',
'as' => 'password.update'
));

View File

@ -18,7 +18,7 @@
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="/auth/register">
<form class="form-horizontal" role="form" method="POST" action="/password/reset">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">

View File

@ -1,4 +1,4 @@
@extends('app')
@extends('backend/template')
@section('content')
<div class="container-fluid">
<div class="row">