Skip to content

Firefly III: a personal finances manager

Removed for #334

James Cole0fdaac53d041
diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php
deleted file mode 100644
index 1a5cc7d951..0000000000
--- a/app/Http/Controllers/Auth/AuthController.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * AuthController.php
- * Copyright (C) 2016 [email protected]
- *
- * This software may be modified and distributed under the terms
- * of the MIT license. See the LICENSE file for details.
- */
-
-declare(strict_types = 1);
-
-namespace FireflyIII\Http\Controllers\Auth;
-
-use FireflyIII\Http\Controllers\Controller;
-use FireflyIII\User;
-use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
-use Illuminate\Foundation\Auth\ThrottlesLogins;
-use Validator;
-
-
-/**
- * Class AuthController
- *
- * @package FireflyIII\Http\Controllers\Auth
- */
-class AuthController extends Controller
-{
- use AuthenticatesAndRegistersUsers, ThrottlesLogins;
-
- /**
- * Where to redirect users after login / registration.
- *
- * @var string
- */
- protected $redirectTo = '/home';
-
- /**
- * Create a new authentication controller instance.
- *
- */
- public function __construct()
- {
- $this->middleware('guest', ['except' => 'logout']);
- parent::__construct();
- }
-
-
- /**
- * Create a new user instance after a valid registration.
- *
- * @param array $data
- *
- * @return User
- */
- protected function create(array $data)
- {
- return User::create(
- [
- 'email' => $data['email'],
- 'password' => bcrypt($data['password']),
- ]
- );
- }
-
-
- /**
- * Get a validator for an incoming registration request.
- *
- * @param array $data
- *
- * @return \Illuminate\Contracts\Validation\Validator
- */
- protected function validator(array $data)
- {
- return Validator::make(
- $data, [
- 'email' => 'required|email|max:255|unique:users',
- 'password' => 'required|confirmed|min:6',
- ]
- );
- }
-
-
-}