Findretros API - Cosmic :)

Synapse

PogChamp
Mar 3, 2012
164
59
In login.php in the controllers folder
Code:
    protected function login(Player $user)
    {
        if ($user && Auth::login($user)) {
            response()->json(["status" => "error", "location" => "https://servers.gg/servers/%YOURSLUG%/vote&return=1"]);
        } else {
            response()->json(["status" => "error", "message" => Locale::get('login/invalid_password')]);
        }
    }
 

Shxrty

Shorty#1960
Mar 31, 2018
629
163
In login.php in the controllers folder
Code:
    protected function login(Player $user)
    {
        if ($user && Auth::login($user)) {
            response()->json(["status" => "error", "location" => "https://servers.gg/servers/%YOURSLUG%/vote&return=1"]);
        } else {
            response()->json(["status" => "error", "message" => Locale::get('login/invalid_password')]);
        }
    }

Put that where u said?

Have you used cosmic alot, i have some questions, discord?
Post automatically merged:

In login.php in the controllers folder
Code:
    protected function login(Player $user)
    {
        if ($user && Auth::login($user)) {
            response()->json(["status" => "error", "location" => "https://servers.gg/servers/%YOURSLUG%/vote&return=1"]);
        } else {
            response()->json(["status" => "error", "message" => Locale::get('login/invalid_password')]);
        }
    }

I added that to the bottom of the login.php in the controllers folder and it didnt work, it gave an error

Code:
Parse error: syntax error, unexpected 'protected' (T_PROTECTED), expecting end of file in C:\inetpub\wwwroot\Cosmic\App\Controllers\Home\Login.php on line 104
Post automatically merged:

You must be registered for see images attach


used that code but it sends me to this
 
Last edited:

Users who are viewing this thread

Top