mentors

mentors Commit Details


Date:2014-07-06 23:54:01 (10 years 5 months ago)
Author:Right Or Wrong
Branch:develop
Commit:42af084481b7ad8e29c5c76c0ac3b69c1d7bbb03
Parents: 9c6e30d77d84872a58be700f398f66373d8540db
Message:did some cleanup here and there

Changes:

File differences

app/controllers/SessionController.php
4747
4848
4949
50
50
5151
5252
5353
......
6060
6161
6262
63
63
6464
6565
6666
} else {
Session::flash('message', 'You entered the wrong email or password. Try again!');
return \Redirect::to('login');
return Redirect::to('login')->with('email', Input::get('email'));
}
}else
} else {
Session::flash('message', 'You entered the wrong email or password. Try again!');
return \Redirect::to('login');
return Redirect::to('login')->with('email', Input::get('email'));
}
}
app/routes.php
3737
3838
3939
40
41
42
43
44
4540
41
4642
4743
4844
Route::get('users', array('as' => 'users', 'uses' => 'UserController@index'));
Route::get('mentors', array('as' => 'mentors', 'uses' => 'UserController@mentors'));
Route::get('mentees', array('as' => 'mentees', 'uses' => 'UserController@mentees'));
});
Route::group(array('before' => 'auth'), function()
{
Route::resource('projects', 'ProjectsController');
});
/**
app/views/login.blade.php
5151
5252
5353
54
54
5555
5656
5757
<div class="control-group">
{{ Form::label('email', 'Email', array('class' => 'control-label')) }}
<div class="controls">
{{ Form::text('email', \Input::old('email'), array('class' => 'form-control borderd input-large', 'span' => 'span6', 'placeholder' => 'awesome@awesome.com'))}} <p class="alert-error pull-right">{{ $errors->first('email') }}</p>
{{ Form::text('email', Input::old('email'), array('class' => 'form-control borderd input-large', 'span' => 'span6', 'placeholder' => 'awesome@awesome.com'))}} <p class="alert-error pull-right">{{ $errors->first('email') }}</p>
</div>
</div>
<div class="control-group">

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05960s using 13 queries.