Skip to content

Firefly III: a personal finances manager

Added routine to change your password.

James Cole43204a3a95cc
diff --git a/app/database/migrations/2014_06_29_083517_create_password_reminders_table.php b/app/database/migrations/2014_06_29_083517_create_password_reminders_table.php
deleted file mode 100644
index dfbcf83fef..0000000000
--- a/app/database/migrations/2014_06_29_083517_create_password_reminders_table.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Database\Migrations\Migration;
-
-class CreatePasswordRemindersTable extends Migration {
-
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('password_reminders', function(Blueprint $table)
- {
- $table->string('email')->index();
- $table->string('token')->index();
- $table->timestamp('created_at');
- });
- }
-
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('password_reminders');
- }
-
-}
diff --git a/app/views/layouts/default.blade.php b/app/views/layouts/default.blade.php
index 08c91c3350..6c86170f6b 100644
--- a/app/views/layouts/default.blade.php
+++ b/app/views/layouts/default.blade.php
@@ -19,6 +19,7 @@
</head>
<body>
<div class="container">
+ @include('partials.menu')
@include('partials.flashes')
@yield('content')
</div>
diff --git a/app/views/partials/menu.blade.php b/app/views/partials/menu.blade.php
new file mode 100644
index 0000000000..8383a4b23d
--- /dev/null
+++ b/app/views/partials/menu.blade.php
@@ -0,0 +1,51 @@
+<nav class="navbar navbar-default" role="navigation">
+ <div class="container-fluid">
+ <!-- Brand and toggle get grouped for better mobile display -->
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="{{route('index')}}">Firefly III</a>
+ </div>
+
+ <!-- Collect the nav links, forms, and other content for toggling -->
+ <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
+ <ul class="dropdown-menu" role="menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li><a href="#">Separated link</a></li>
+ <li class="divider"></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ <form class="navbar-form navbar-left" role="search">
+ <div class="form-group">
+ <input type="text" class="form-control" placeholder="Search">
+ </div>
+ <button type="submit" class="btn btn-default">Submit</button>
+ </form>
+ <ul class="nav navbar-nav navbar-right">
+ <li><a href="#">Link</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{{Auth::user()->email}}} <span class="caret"></span></a>
+ <ul class="dropdown-menu" role="menu">
+ <li><a href="{{route('profile')}}"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
+ <li class="divider"></li>
+ <li><a href="{{route('logout')}}"><span class="glyphicon glyphicon-arrow-right"></span> Logout</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div><!-- /.navbar-collapse -->
+ </div><!-- /.container-fluid -->
+</nav>
\ No newline at end of file
diff --git a/app/views/profile/change-password.blade.php b/app/views/profile/change-password.blade.php
new file mode 100644
index 0000000000..ff4371a2f1
--- /dev/null
+++ b/app/views/profile/change-password.blade.php
@@ -0,0 +1,52 @@
+@extends('layouts.default')
+@section('content')
+<div class="row">
+ <div class="col-lg-12 col-md-12 col-sm-12">
+ <h2>Change your password<br/>
+ <small>Logged in as {{Auth::user()->email}}</small>
+ </h1>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-12 col-md-12 col-sm-12">
+ <p>
+ Use this extremely obvious form to change your password.
+ </p>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-6 col-md-12 col-sm-12">
+
+ {{Form::open(['class' => 'form-horizontal'])}}
+ <div class="form-group">
+ <label for="inputOldPassword" class="col-sm-4 control-label">Old password</label>
+ <div class="col-sm-8">
+ <input type="password" class="form-control" id="inputOldPassword" placeholder="Old password" name="old">
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="inputNewPassword1" class="col-sm-4 control-label">New password</label>
+ <div class="col-sm-8">
+ <input type="password" class="form-control" id="inputNewPassword1" placeholder="New password" name="new1">
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="inputNewPassword2" class="col-sm-4 control-label">New password (again)</label>
+ <div class="col-sm-8">
+ <input type="password" class="form-control" id="inputNewPassword2" placeholder="New password (again)" name="new2">
+ </div>
+ </div>
+ <div class="form-group">
+ <div class="col-sm-offset-4 col-sm-10">
+ <button type="submit" class="btn btn-info">Change your password</button>
+ </div>
+ </div>
+ {{Form::close()}}
+
+ </div>
+</div>
+@stop
+@section('scripts')
+@stop
\ No newline at end of file
diff --git a/app/views/profile/index.blade.php b/app/views/profile/index.blade.php
new file mode 100644
index 0000000000..2a569df30c
--- /dev/null
+++ b/app/views/profile/index.blade.php
@@ -0,0 +1,17 @@
+@extends('layouts.default')
+@section('content')
+<div class="row">
+ <div class="col-lg-12 col-md-12 col-sm-12">
+ <h2>Profile<br/>
+ <small>Logged in as {{Auth::user()->email}}</small>
+ </h1>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-12 col-md-12 col-sm-12">
+ <p class="lead"><a href="{{route('change-password')}}">Change your password</a></p>
+ </div>
+</div>
+@stop
+@section('scripts')
+@stop
\ No newline at end of file