GithubHelp home page GithubHelp logo

Unable to Login to Admin about voyager HOT 10 CLOSED

thedevdojo avatar thedevdojo commented on August 20, 2024
Unable to Login to Admin

from voyager.

Comments (10)

afsardo avatar afsardo commented on August 20, 2024

What version of laravel are you using it on?

Edit: Ok i actually noticed it in the screen 5.2

from voyager.

berrymoor avatar berrymoor commented on August 20, 2024

same problem..

from voyager.

jun283 avatar jun283 commented on August 20, 2024

5.2, same problem.

from voyager.

ooocrniooo avatar ooocrniooo commented on August 20, 2024

Here is a solution for this problem..

Change in: vendor/tcg/voyager/src/Controllers/VoyagerAuthController.php

`public function postLogin(Request $request){
$authenticated = false;
$this->validate($request, [
$this->loginUsername() => 'required',
'password' => 'required'
]);

    // If the class is using the ThrottlesLogins trait, we can automatically throttle
    // the login attempts for this application. We'll key this by the username and
    // the IP address of the client making these requests into this application.
    $throttles = $this->isUsingThrottlesLoginsTrait();


    if ($throttles && $this->hasTooManyLoginAttempts($request)) {
        return $this->sendLockoutResponse($request);
    }

    $credentials = $this->getCredentials($request);


    if (Auth::attempt($credentials, $request->has('remember'))) {
        $authenticated = true;
    }

    if($authenticated){
        return $this->handleUserWasAuthenticated($request, $throttles);
    }

    // If the login attempt was unsuccessful we will increment the number of attempts
    // to login and redirect the user back to the login form. Of course, when this
    // user surpasses their maximum number of attempts they will get locked out.
    if ($throttles) {
        $this->incrementLoginAttempts($request);
    }

    return redirect($this->loginPath())
        ->withInput($request->only($this->loginUsername(), 'remember'))
        ->withErrors([
            $this->loginUsername() => $this->getFailedLoginMessage(),
        ]);
}`

from voyager.

faraz-purelogics avatar faraz-purelogics commented on August 20, 2024

Yes its laravel 5.2 i have checked it in laravel 5.3.* and its working fine in that version but not in 5.2
And ooocrniooo solution also worked in 5.2 but after login avatar and profile image is not showing.

from voyager.

ooocrniooo avatar ooocrniooo commented on August 20, 2024

you must set manually a symlink to the storage path, after that your image path will be correct.

from voyager.

filipsobol avatar filipsobol commented on August 20, 2024

@faraz-purelogics As @ooocrniooo suggested, try to manually set a symlink (php artisan storage:link), but make sure you run console with admin rights.

from voyager.

marktopper avatar marktopper commented on August 20, 2024

Sadly - we do not support Laravel 5.2.
Could however, if many people need this feature for Laravel 5.2, it could be implemented.

from voyager.

jafarchoupan avatar jafarchoupan commented on August 20, 2024

i take this error in login voyager dashbord for first time :These credentials do not match our records.
[email protected] and password input ...help me guys thanks

from voyager.

fletch3555 avatar fletch3555 commented on August 20, 2024

@jafarchoupan, this issue has been closed for a year and a half. Please ask for help on our Slack group instead.

from voyager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.