Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into 87-mysql-ssl-support
Browse files Browse the repository at this point in the history
  • Loading branch information
oranges13 committed Nov 5, 2019
2 parents fc4ee29 + 494efa1 commit d81c3a6
Show file tree
Hide file tree
Showing 3,387 changed files with 181,849 additions and 148,687 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
.env
installed.lock
database.sqlite
.htaccess
.htaccess
.editorconfig
.idea/*
41 changes: 33 additions & 8 deletions application/app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\Registrar;
use App\User;
use Validator;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;

class AuthController extends Controller {
Expand All @@ -23,16 +23,41 @@ class AuthController extends Controller {
/**
* Create a new authentication controller instance.
*
* @param \Illuminate\Contracts\Auth\Guard $auth
* @param \Illuminate\Contracts\Auth\Registrar $registrar
* @return void
*/
public function __construct(Guard $auth, Registrar $registrar)
public function __construct()
{
$this->auth = $auth;
$this->registrar = $registrar;

$this->middleware('guest', ['except' => 'getLogout']);
}

/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
public function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|confirmed|min:6',
]);
}

/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return User
*/
public function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
}

}
7 changes: 1 addition & 6 deletions application/app/Http/Controllers/Auth/PasswordController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\PasswordBroker;
use Illuminate\Foundation\Auth\ResetsPasswords;

class PasswordController extends Controller {
Expand All @@ -27,11 +25,8 @@ class PasswordController extends Controller {
* @param \Illuminate\Contracts\Auth\PasswordBroker $passwords
* @return void
*/
public function __construct(Guard $auth, PasswordBroker $passwords)
public function __construct()
{
$this->auth = $auth;
$this->passwords = $passwords;

$this->middleware('guest');
}

Expand Down
2 changes: 1 addition & 1 deletion application/app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function update($id)
$rules = array(
'name' => 'required|min:3|max:255',
'role' => 'required|numeric|role',
'email' => 'required|email|max:255|unique:users,'.$id,
'email' => 'required|email|max:255|unique:users,email,'.$id ,
'password' => 'confirmed|min:6'
);

Expand Down
39 changes: 0 additions & 39 deletions application/app/Services/Registrar.php

This file was deleted.

2 changes: 1 addition & 1 deletion application/bootstrap/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
|
*/

if (file_exists($compiledPath = __DIR__.'/../vendor/compiled.php'))
if (file_exists($compiledPath = __DIR__.'/cache/compiled.php'))
{
require $compiledPath;
}
Expand Down
2 changes: 2 additions & 0 deletions application/bootstrap/cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
6 changes: 4 additions & 2 deletions application/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"license": "cc-by-nc-sa 4.0",
"type": "project",
"require": {
"laravel/framework": "5.0.*",
"illuminate/html": "~5.0"
"laravel/framework": "5.1.*",
"laravelcollective/html": "5.1.*"
},
"autoload": {
"classmap": [
Expand All @@ -32,5 +32,7 @@
},
"config": {
"preferred-install": "dist"
},
"require-dev": {
}
}
Loading

0 comments on commit d81c3a6

Please sign in to comment.