src/controllers/LoginController.php
public function getChange($email, $token) {
		//todo check email / token combo
		if (!$user = DB::table(config('center.db.users'))->whereNull('deleted_at')->where('email', $email)->where('token', $token)->first()) {
			return redirect()->action('\LeftRight\Center\Controllers\LoginController@getReset')->with([
				'error'=>trans('center::site.password_change_error')
			]);
		}

		return view('center::login.change', [
			'email'=>$email,
			'token'=>$token,
		]);
	}
public function getChange($email, $token) {
		//todo check email / token combo
		if (!$user = DB::table(config('center.db.users'))->whereNull('deleted_at')->where('email', $email)->where('token', $token)->first()) {
			return redirect()->action('\LeftRight\Center\Controllers\LoginController@getReset')->with([
				'error'=>trans('center::site.password_change_error')
			]);
		}

		return view('center::login.change', [
			'email'=>$email,
			'token'=>$token,
		]);
	}
public function getChange ( $ email , $ token ) { //todo check email / token combo if ( ! $ user = DB :: table ( config ( 'center.db.users' ) ) -> whereNull ( 'deleted_at' ) -> where ( 'email' , $ email ) -> where ( 'token' , $ token ) -> first ( ) ) { return redirect ( ) -> action ( '\LeftRight\Center\Controllers\LoginController@getReset' ) -> with ( [ 'error' => trans ( 'center::site.password_change_error' ) ] ) ; } return view ( 'center::login.change' , [ 'email' => $ email , 'token' => $ token , ] ) ; }
reset password form
reset password form