loshMiS

loshMiS supports this item

Supported

This author's response time can be up to 1 business day.

808 comments found.

Hi,

Have successfully installed vanguard, but on the login screen there’s no link to allow new registrations, so I can’t get in! Have I missed a config step? Is there a default user?

Thanks in advance Scott

Hey Scott,

Yeah, there is a default user available right after the installation. Default credentials are:

username: admin

password: admin123

They are available at the end of “Step 6” inside the documentation: https://docs.vanguardapp.io/#installing-vanguard

Regards,

Milos

Excellent, thanks mate. By the way – excellent product. Highly recommend it to anyone reading this and thinking about buying.

MKTN

MKTN Purchased

Hello! I use api for angular 5 and you need to understand how you can check the authorization of the user when making changes on the side of the PHP script. Since you connect your authorization to your script?

Hey,

I’m sorry but I’m not sure that I understand your question. Can you please explain it a bit more? What exactly you would want to check?

Regards,

Milos

MKTN

MKTN Purchased

Oh sure. 1. I receive a token via api. 2. I have a script to add / delete / change records. 3. I need to check the authorization of the user for changing changes

Hey,

Well, in general, your frontend application permissions should be separated from the API. Meaning that you will define the permissions separately inside your angular application.

However, if you would like to fetch the permissions for currently authenticated user, then you can add one more endpoint inside the routes/api.php file for that. It is pretty simple and can look something like following:


Route::get('me/permissions', function () {
    return auth()->user()->role->cachedPermissions()->pluck('name')->toArray();
})->middleware('auth');</core>

Now, when you send the request to /me/permissions you will get the names of the permissions that specific user has.

Regards,

Milos

Hi there,

Sorry, another question now I’ve got access.

Its a vanilla set up and working nicely, except any getting 404s for vanguard-logo.png, profile.png, and a 403s for js.cookie.js, bootstrap-datetimepicker.min.css, moment.min.js., croppie.js

Everything else is loading, and the files are there.

Is this a permissions issue? Stumped because everything has the same permissions and owner (root).

Cheers Scott

Hey,

You are getting those errors because of files permissions on the server. Make sure that those files are readable by your web server so they can be served via HTTP. Usually, you just need to update permissions to 755 (or 775) and you are good to go.

Regards,

Milos

can i add a login in button like facebook with this script for example i have three websites magento, wordpress and joomla and all three site a connecting together for the same company i can’t make user signup three times in the three web site so can i add login with your account in three sites ? i hope you under stand what i mean

Hey,

Yeah, I understand what you mean but, unfortunately, this script does not have that feature.

Regards,

Milos

neflictus

neflictus Purchased

Sorry. Hard coded User role name.

Hey,

Am still fighting on mail issue. My localhost send test email to my gmail with success. With the by registering a new user i received this error:

Whoops, something went wrong! :(

Something went wrong and we could not proceed… Please try again or contact website owner.

Hey,

Can you please enable the development mode ( https://docs.vanguardapp.io/development-mode.html ) and let me know which error you get exactly?

Also, what test script do you use to send test emails?

Regards,

Milos

Good morning,

I installed the framework correctly. I have ajax calls. In the header of this ajax I check the session and at the moment I use the code you recommended. (I use SESSION_DRIVER = database)

I ask you, is there a quicker and faster way to check the session (true or false) in my ajax? There is a slight delay and I would like to know if I could reduce the delay in the response.

Thank you for your excellent work.

my code is this…

require __DIR__.'/../bootstrap/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';

$request = Illuminate\Http\Request::capture();

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$kernel->pushMiddleware(\Vanguard\Http\Middleware\EncryptCookies::class);
$kernel->pushMiddleware(\Illuminate\Session\Middleware\StartSession::class);
$kernel->handle($request);

//code for redirectTo function...

thanks

Hey,

Unfortunately, there is no faster way to do that because it needs to boot up the whole Laravel framework so it can access the session and stuff.

Regards,

Milos

Hello! Can I enable email notification every time I log on? If so, how?

by
by
by
by
by
by