Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
Create stub action class for password reset page.
Browse files Browse the repository at this point in the history
  • Loading branch information
franzliedke committed Jul 1, 2014
1 parent e892e54 commit c9138da
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/FluxBB/Actions/PasswordResetPage.php
@@ -0,0 +1,8 @@
<?php

namespace FluxBB\Actions;

class PasswordResetPage extends Page
{
protected $viewName = 'fluxbb::auth.reset_password';
}
5 changes: 1 addition & 4 deletions src/routes.php
Expand Up @@ -21,10 +21,7 @@
Route::post('register', $actionRoute('FluxBB\Actions\Register'));
Route::get('login', array('as' => 'login', 'uses' => $actionRoute('FluxBB\Actions\LoginPage')));
Route::post('login', $actionRoute('FluxBB\Actions\Login'));
Route::get('forgot_password.html', array(
'as' => 'forgot_password',
'uses' => 'FluxBB\Controllers\AuthController@getForgot',
));
Route::get('reset_password', array('as' => 'reset_password', 'uses' => $actionRoute('FluxBB\Actions\PasswordResetPage')));
Route::get('logout', array('as' => 'logout', 'uses' => $actionRoute('FluxBB\Actions\Logout')));
Route::get('rules', array('as' => 'rules', 'uses' => $actionRoute('FluxBB\Actions\Rules')));
Route::get('search', array('as' => 'search', 'uses' => $actionRoute('FluxBB\Actions\SearchPage')));
Expand Down
2 changes: 1 addition & 1 deletion src/views/auth/login.blade.php
Expand Up @@ -14,7 +14,7 @@
</div>

<p class="clearb">{{ trans('fluxbb::login.login_info') }}</p>
<p class="actions"><span><a href="{{ route('register') }}" tabindex="5">{{ trans('fluxbb::login.not_registered') }}</a></span> <span><a href="{{ route('forgot_password') }}" tabindex="6">{{ trans('fluxbb::login.forgotten_pass') }}</a></span></p>
<p class="actions"><span><a href="{{ route('register') }}" tabindex="5">{{ trans('fluxbb::login.not_registered') }}</a></span> <span><a href="{{ route('reset_password') }}" tabindex="6">{{ trans('fluxbb::login.forgotten_pass') }}</a></span></p>
</fieldset>
<p class="buttons"><input type="submit" name="login" value="{{ trans('fluxbb::common.login') }}" tabindex="4" /></p>
</form>
Expand Down
5 changes: 5 additions & 0 deletions src/views/auth/reset_password.blade.php
@@ -0,0 +1,5 @@
@extends('fluxbb::layout.main')

@section('main')
<h2>Reset password</h2>
@stop

0 comments on commit c9138da

Please sign in to comment.