Giter Site home page Giter Site logo

Comments (10)

Bubka avatar Bubka commented on June 3, 2024

Hi,

Opening api/v1/user in a dedicated tab won't work, the XSRF token will be missing.
Please retry to sign in from a regular browser tab after clearing all cookies for the 2FAuth domain.

from 2fauth.

CodeShakingSheep avatar CodeShakingSheep commented on June 3, 2024

I cleared local storage, session storage, all cookies and cache in a regular browser tab. It's still not working. The login page is still blank.

from 2fauth.

Bubka avatar Bubka commented on June 3, 2024

As you indicated here https://github.com/Bubka/2FAuth/releases/tag/v5.0.3 I also set my ASSET_URL to my APP_URL. This didn't change anything

Did you clear the app cache? This can be done by running php artisan optimize:clear in a terminal. (but not sure this can be done easily under yunohost). You can also manually delete the content of storage/framework/app/cache/data

from 2fauth.

CodeShakingSheep avatar CodeShakingSheep commented on June 3, 2024

I just did. It's easily possible in yunohost (just had to specify php version explicitly).

/var/www/2fauth# php8.2 artisan optimize:clear

   INFO  Clearing cached bootstrap files.  

  events ............................................................ 1ms DONE
  views ............................................................. 4ms DONE
  cache ............................................................. 1ms DONE
  route ............................................................. 1ms DONE
  config ............................................................ 1ms DONE
  compiled .......................................................... 1ms DONE

Did "Empty cache and hard reload" and reloaded the page after it. Still, the same behavior. Page stays blank.

from 2fauth.

Bubka avatar Bubka commented on June 3, 2024

Having dev tools opened, when you load the 2FAuth page, what is the response code of the js assets requests? 200?
Also, do you have any mixed content error in the console tab?

from 2fauth.

CodeShakingSheep avatar CodeShakingSheep commented on June 3, 2024

Here is a screenshot from my dev console. No mixed content. Don't mind the SSO thing. That's coming from yunohost.
image

from 2fauth.

Bubka avatar Bubka commented on June 3, 2024

I faced the same issue while updating the demo site to v5.1.0. Running php artisan optimize:clear, clearing site data (using the Firefox feature Clear cookies and site data...) then refreshing the page using ctrl+F5 solved it.

Are you still stuck?

from 2fauth.

CodeShakingSheep avatar CodeShakingSheep commented on June 3, 2024

Since my rollback to version 5.0.3 I haven't tried again. Someone already tested it on the testing branch and confirmed that the update to version 5.1.0 works. So, presumably it's fixed, see YunoHost-Apps/2FAuth_ynh#60 (comment) . I will wait until version 5.1.0 is officially available in the YNH package on the master branch and report back then.

from 2fauth.

CodeShakingSheep avatar CodeShakingSheep commented on June 3, 2024

Just to give an update about this. I'm still running into this issue for update to 5.1.0, see my comment. However, there is still a PR which supposedly fixes this but it hasn't been merged yet. So, I will wait for it to be merged and report back.

from 2fauth.

CodeShakingSheep avatar CodeShakingSheep commented on June 3, 2024

Ok, with the merged PR the upgrade to version 5.1.1 worked. So, I'm closing this.

from 2fauth.

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.