creativetimofficial / ct-vue-now-ui-dashboard-pro-laravel

Vue SPA Now UI template connected to working Laravel REST API with the help of json:api standard
2 stars 1 forks source link

vue-now-ui-dashboard-pro-laravel Login Issue #1

Closed ghost closed 1 year ago

ghost commented 1 year ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

Expected behaviour should be working properly with login credentials

Current Behavior

Currently Not able to get login in the dashboard

Failure Information (for bugs)

It simply shows invalid credentials even though I have tested the credentials in the DB too.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

Laravel API Project Installation

Navigate in your Laravel API project folder: cd your-laravel-json-api-project Install project dependencies: composer install Create a new .env file: cp .env.example .env Add your own database credentials in the .env file in DB_DATABASE, DB_USERNAME, DB_PASSWORD Create users table: php artisan migrate --seed Generate application key: php artisan key:generate Install Laravel Passport: php artisan passport:install

Vue Now UI Dashboard Project Installation Navigate to your Vue Now UI Dashboard project folder: cd your-vue-now-ui-dashbord-project Install project dependencies: npm install Create a new .env file: cp .env.example .env VUE_APP_BASE_URL should contain the URL of your Vue Now Ui Dashboard Project (eg. http://localhost:8080/) VUE_APP_API_BASE_URL should contain the URL of your Laravel JSON:API Project. (eg. http://localhost:3000/api/v1) Run npm run dev to start the application in a local development environment or npm run build to build release distributable.

admin type - [admin@jsonapi.com] with the password secret

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets or files here. Vue-Now-UI-Dashboard-PRO-Laravel-by-Creative-Tim-UPDIVISION

ghost commented 1 year ago

Hi Adriene,

Okay, got it but I am trying to log in with the below credentials, and I think these credentials have access to Item Tab but still, I am getting the same error. Username admin@jsonapi.com , Password secret

Let me tell you one thing about the local environment all three types of login are working perfectly but when I make connect laravel API with the live server then it is giving me an error. image

Regards: Pardeep Rawat

teamupdivision commented 1 year ago

Hello,

Could you please send some screenshots with the errors when you use the admin credentials?

ghost commented 1 year ago

Hello Sir,

Here is the short video I made. I hope this is what you want. https://www.awesomescreenshot.com/video/11588263?key=72e668c600c2068f8010088e0ed7d584

Regards: Pardeep Rawat

ghost commented 1 year ago

Hi Adrine,

Good Morning,

I didn't get your response?

Regards: Pardeep Rawat

eugentudorache commented 1 year ago

Hello,We need more details in order to debug yorr problem. Please completely remove both projects and reinstall them. Pleasw also record the screen and send us the recording.Thank youEugenOn 29 Sep 2022, at 15:21, Pardeeprawat001 @.***> wrote: Hi, deleting node_modules and package.lock then do npm install:: Done also run the dev command after that. Found the Below Error when run the npm dev command, and still getting the same error when try to run login.

Regards: Pardeep Rawat

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

eugentudorache commented 1 year ago

I'm sorry, but we'll not debug your local project, it will not help you in any way. Please reinstall it.

Thank you

-- Eugen Tudorache Technical Director & Co-Founder m: +40 733 926 398 e: @. @. w: www.updivision.com [http://www.updivision.com/] On 30/09/2022 7:55:52, Pardeeprawat001 @.> wrote: Hi Eugene, I get it but my main reason is to run this project asap, as I am running out of time. Thanks & Regards Pardeepb Rawat — Reply to this email directly, view it on GitHub [https://github.com/creativetimofficial/ct-vue-now-ui-dashboard-pro-laravel/issues/1#issuecomment-1263102330], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AC4GU4HOJL5WLT65N63ESSTWAZXFRANCNFSM6AAAAAAQVSBCSE]. You are receiving this because you commented.Message ID: @.>

teamupdivision commented 1 year ago

Hello, did you make changes to the default users and roles?

ghost commented 1 year ago

Hi Eugine,

No, I didn't make any changes in the default user and roles.

Regards: Pardeep Rawat

On Tue, 11 Oct 2022 at 21:45, Updivision Team @.***> wrote:

Hello, did you make changes to the default users and roles?

— Reply to this email directly, view it on GitHub https://github.com/creativetimofficial/ct-vue-now-ui-dashboard-pro-laravel/issues/1#issuecomment-1274948474, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3IXG244GKWLOCQPPXVUMLTWCWHBTANCNFSM6AAAAAAQVSBCSE . You are receiving this because you authored the thread.Message ID: <creativetimofficial/ct-vue-now-ui-dashboard-pro-laravel/issues/1/1274948474 @github.com>

ghost commented 1 year ago

Hi Adriene,

I hope you are doing well.

Yesterday I made a repository and uploaded my Vue project there. I have uploaded the whole dist folder there you can check it. Is it helpful for you to diagnose the issue?

Link: https://pardeeprawat001.github.io/finalaravel/

Regards: Pardeep Rawat

teamupdivision commented 1 year ago

Hello Pardeep,

Could you please send us a database dump?

Thank you.

ghost commented 1 year ago

Hi Adrine,

PFA laravelvuedb.zip

Regards: Pardeep Rawat

teamupdivision commented 1 year ago

Hello,

Could you please try incognito?

If that does not work, go ahead and delete everything you have in storage.

From what we can see after the login the next requests are perceived as not being logged in.

Unfortunately we cannot reproduce any of your issues.

ghost commented 1 year ago

Hi Adriene,

Sorry for the late reply. i hope you doing well.

Here we have done as per your request. Please watch the videos and tell me what I am doing wrong here.

In the Below Videos, laravel is working from a live server and my vue is on local Environment. Laravel API Project Installation(Server) Part 1: https://www.loom.com/share/fa09d69de2b84f769ac85a3f0544346c Part 2: https://www.loom.com/share/c9821a7604294420b0e4768d3a303bb4

Vue Now UI Dashboard Project Installation https://www.loom.com/share/f0b02b03d3e140eca692a8bb3502d309

Note: As you can see, we are having a problem with the EXAMPLES (API) Tab. Only two menu are showing 1) User Profile 2) Item Management. as in local environment all the menus under the Examples (API) tab are working fine.

/*****/

In the Below Videos laravel as well as vue are in the local environment. Laravel API Project Installation(Local) and set up with vue project https://www.loom.com/share/5b512fc1d4f1404a81900b1011dc914c

Note: As I mentioned earlier on local setup its working fine here local setup means vue, as well as laravel both, are on local environment.

If you have any questions let me please let me know.

Regards: Pardeep Rawat

teamupdivision commented 1 year ago

Hello, I'm sorry but this is no longer a ticket about support with the product. If it's working on your local env, it means it needs to work everywhere. You clearly have an issue on the deploy. Please try as we said before to delete your local storage. Thank you