mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify
This commit is contained in:
commit
017699f9b6
@ -1,5 +1,5 @@
|
|||||||
.ad-detail-tabs .nav-link.active {
|
.ad-detail-tabs .nav-link.active {
|
||||||
background-color: #FFC106 !important;
|
background-color: #FFC106;
|
||||||
border-color: #ffc107 #ffc107 #ffc107;
|
border-color: #ffc107 #ffc107 #ffc107;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -635,8 +635,9 @@ class AdvsController extends PublicController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$form->render($request->update_id);
|
$form->render($request->update_id);
|
||||||
|
$adv = $this->adv_repository->find($request->update_id);
|
||||||
|
|
||||||
if ($this->request->address_id != "") {
|
if ($this->request->address_id != "") {
|
||||||
$adv = $form->getFormEntry();
|
|
||||||
$address = $address->find($this->request->address_id);
|
$address = $address->find($this->request->address_id);
|
||||||
$adv->country_id = $address->country_id;
|
$adv->country_id = $address->country_id;
|
||||||
$adv->city = $address->city;
|
$adv->city = $address->city;
|
||||||
@ -649,8 +650,7 @@ class AdvsController extends PublicController
|
|||||||
$post['id'] = $request->update_id;
|
$post['id'] = $request->update_id;
|
||||||
$events->dispatch(new priceChange($post));//price history
|
$events->dispatch(new priceChange($post));//price history
|
||||||
if ($request->url == "") {
|
if ($request->url == "") {
|
||||||
$LastAdv = $advModel->getLastUserAdv();
|
$advRepository->cover_image_update($adv);
|
||||||
$advRepository->cover_image_update($LastAdv);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($form->hasFormErrors()) {
|
if ($form->hasFormErrors()) {
|
||||||
|
|||||||
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Visiosoft\ProfileModule\Http\Middleware;
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class authCheck
|
||||||
|
{
|
||||||
|
|
||||||
|
private $auth;
|
||||||
|
private $request;
|
||||||
|
|
||||||
|
public function __construct(Guard $auth,Request $request)
|
||||||
|
{
|
||||||
|
$this->auth = $auth;
|
||||||
|
$this->request = $request;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Guard $auth
|
||||||
|
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
|
||||||
|
*/
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
if ($this->auth->check()) {
|
||||||
|
return redirect($this->request->get('redirect', '/'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -6,6 +6,7 @@ use Visiosoft\ProfileModule\Adress\Contract\AdressRepositoryInterface;
|
|||||||
use Visiosoft\ProfileModule\Adress\AdressRepository;
|
use Visiosoft\ProfileModule\Adress\AdressRepository;
|
||||||
use Anomaly\Streams\Platform\Model\Profile\ProfileAdressEntryModel;
|
use Anomaly\Streams\Platform\Model\Profile\ProfileAdressEntryModel;
|
||||||
use Visiosoft\ProfileModule\Adress\AdressModel;
|
use Visiosoft\ProfileModule\Adress\AdressModel;
|
||||||
|
use Visiosoft\ProfileModule\Http\Middleware\authCheck;
|
||||||
use Visiosoft\ProfileModule\Profile\Password\ForgotPassFormBuilder;
|
use Visiosoft\ProfileModule\Profile\Password\ForgotPassFormBuilder;
|
||||||
use Visiosoft\ProfileModule\Profile\Password\PasswordFormBuilder;
|
use Visiosoft\ProfileModule\Profile\Password\PasswordFormBuilder;
|
||||||
use Visiosoft\ProfileModule\Profile\Profile\ProfileFormBuilder;
|
use Visiosoft\ProfileModule\Profile\Profile\ProfileFormBuilder;
|
||||||
@ -105,6 +106,15 @@ class ProfileModuleServiceProvider extends AddonServiceProvider
|
|||||||
],
|
],
|
||||||
'ajax/phone-validation' => 'Visiosoft\ProfileModule\Http\Controller\UserAuthenticator@phoneValidation',
|
'ajax/phone-validation' => 'Visiosoft\ProfileModule\Http\Controller\UserAuthenticator@phoneValidation',
|
||||||
|
|
||||||
|
'register' => [
|
||||||
|
'middleware' => [
|
||||||
|
authCheck::class
|
||||||
|
],
|
||||||
|
'ttl' => 0,
|
||||||
|
'as' => 'anomaly.module.users::register',
|
||||||
|
'uses' => 'Anomaly\UsersModule\Http\Controller\RegisterController@register',
|
||||||
|
],
|
||||||
|
|
||||||
/* Login */
|
/* Login */
|
||||||
'login-in' => 'Visiosoft\ProfileModule\Http\Controller\UserAuthenticator@attempt',
|
'login-in' => 'Visiosoft\ProfileModule\Http\Controller\UserAuthenticator@attempt',
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user