Git Product home page Git Product logo

Comments (6)

mad9scientist avatar mad9scientist commented on August 18, 2024 1

I found the cause of the issue, in my particular case. It was with the default location block in nginx conf - apparently, I made a minor typo when writing the rules.

This particular section

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

That dollar sign before query_string is kinda important.

Thanks for your reply and Thank you so much for your excellent project!

from admin-portal.

hillelcoren avatar hillelcoren commented on August 18, 2024

I'm not sure, I'm not able to reproduce the problem.

If you want to create a test user with no permissions and send the login credentials to [email protected] I can try to debug the issue.

from admin-portal.

bajki avatar bajki commented on August 18, 2024

AccountApiController -> processLogin()

When i remove if (request()->include_static) than app works..

from admin-portal.

hillelcoren avatar hillelcoren commented on August 18, 2024

Thanks, that's helpful.

It could be a web server config issue which is preventing the URL param from being recognized.

from admin-portal.

mad9scientist avatar mad9scientist commented on August 18, 2024

I'm seeing this same error on both iOS 11.4 and Android 4.4.2. I can also confirm that removing the if statement from line 116 in the AccountApiController does allow login into the app (with and without 2FA).

I'm using the following versions:

  • nginx Web Server 1.8.1
  • PHP 7.2.14
  • Invoice Ninja v 4.5.9
  • iOS App v0.1.27

Also when attempting to login the following information is written into the nginx logs:

"POST /api/v1/login?include=tax_rates,users,custom_payment_terms&include_static=true HTTP/1.1" 200 1608 "-" "Dart/2.1 (dart:io)"

I couldn't find anything worth noting from the App Logs.

I hope this is helpful.

from admin-portal.

hillelcoren avatar hillelcoren commented on August 18, 2024

If it's failing because of the 'if statement' it seems likely the request param isn't being sent to the script.

from admin-portal.

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.