Code Monkey home page Code Monkey logo

2fauth_ynh's People

Contributors

ericgaspar avatar oniricorpe avatar thovi98 avatar tituspijean avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

smp971 bubka thovi98

2fauth_ynh's Issues

Upgrade failed from 4.1.0~ynh1 to 4.1.0~ynh3

Describe the bug

A clear and concise description of what the bug is.

Context

  • Hardware: VPS bought online
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • If upgrading, current package version: 4.1.0~ynh1

Steps to reproduce

I just hit the upgrade button in webadmin UI.

Expected behavior

Upgrade should run successfully.

Logs

https://paste.yunohost.org/raw/runobilese

can't delete accounts

Matériel: Raspberry Pi à la maison
Version de YunoHost: 4.3.6.3 (stable).
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

hi ... so, the code generation is now working ...

but still got another problem : i can't delete any account .

when i try, i got the confirmation popup, but when i click ok, nothing appen.

oppened an issue on the 2fauth github too ... the dev is very cool !

Bubka/2FAuth#87

Can't login

FR: Après l'installation dans un sous domaine (pas de problème), le réglage du nom d'utilisateur et du mot de passe, il n'est pas possible d'entrer dans l'administration. Je l'ai désinstallé et réinstallé Même problème. Et si j'essaie de réinitialiser le mot de passe, j'ai un message disant : An error occured : Cannot send message without a sender address

EN: After installation in a sub domain (no problem), setting username & password it's not possible to enter in the admin. I've disinstalled it and reinstalled it Same problem. And if I try to reset the passw, I've a message saying : An error occured: Cannot send message without a sender address

2FAuth_YBH 5.0.2 fails to load after upgrade

2FAuth fails to load

issue details

Upgraded the app from 4.2.3 to 5.0.2 using yunohostt CLI command interface with tools upgrade apps.
Can't log into the app, fails with json:

{
"message": "Undefined variable $userPreferences",
"exception": "Spatie\LaravelIgnition\Exceptions\ViewException",
"file": "/var/www/2fauth/resources/views/landing.blade.php",
"line": 2,
"trace": [
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php",
"line": 255,
"function": "handleError",
"class": "Illuminate\Foundation\Bootstrap\HandleExceptions",
"type": "->"
},
{
"file": "/var/www/2fauth/resources/views/landing.blade.php",
"line": 2,
"function": "Illuminate\Foundation\Bootstrap\{closure}",
"class": "Illuminate\Foundation\Bootstrap\HandleExceptions",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php",
"line": 124,
"function": "require"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php",
"line": 125,
"function": "Illuminate\Filesystem\{closure}",
"class": "Illuminate\Filesystem\Filesystem",
"type": "::"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php",
"line": 58,
"function": "getRequire",
"class": "Illuminate\Filesystem\Filesystem",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php",
"line": 72,
"function": "evaluatePath",
"class": "Illuminate\View\Engines\PhpEngine",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/View/View.php",
"line": 207,
"function": "get",
"class": "Illuminate\View\Engines\CompilerEngine",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/View/View.php",
"line": 190,
"function": "getContents",
"class": "Illuminate\View\View",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/View/View.php",
"line": 159,
"function": "renderContents",
"class": "Illuminate\View\View",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Http/Response.php",
"line": 69,
"function": "render",
"class": "Illuminate\View\View",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Http/Response.php",
"line": 35,
"function": "setContent",
"class": "Illuminate\Http\Response",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 918,
"function": "__construct",
"class": "Illuminate\Http\Response",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 885,
"function": "toResponse",
"class": "Illuminate\Routing\Router",
"type": "::"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "prepareResponse",
"class": "Illuminate\Routing\Router",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\Routing\{closure}",
"class": "Illuminate\Routing\Router",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/passport/src/Http/Middleware/CreateFreshApiToken.php",
"line": 63,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Laravel\Passport\Http\Middleware\CreateFreshApiToken",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 50,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Routing\Middleware\SubstituteBindings",
"type": "->"
},
{
"file": "/var/www/2fauth/app/Http/Middleware/SetLanguage.php",
"line": 68,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "App\Http\Middleware\SetLanguage",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php",
"line": 78,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\VerifyCsrfToken",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php",
"line": 121,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php",
"line": 64,
"function": "handleStatefulRequest",
"class": "Illuminate\Session\Middleware\StartSession",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Session\Middleware\StartSession",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php",
"line": 37,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php",
"line": 67,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Cookie\Middleware\EncryptCookies",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 805,
"function": "then",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 784,
"function": "runRouteWithinStack",
"class": "Illuminate\Routing\Router",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 748,
"function": "runRoute",
"class": "Illuminate\Routing\Router",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 737,
"function": "dispatchToRoute",
"class": "Illuminate\Routing\Router",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 200,
"function": "dispatch",
"class": "Illuminate\Routing\Router",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 144,
"function": "Illuminate\Foundation\Http\{closure}",
"class": "Illuminate\Foundation\Http\Kernel",
"type": "->"
},
{
"file": "/var/www/2fauth/app/Http/Middleware/ForceJsonResponse.php",
"line": 19,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "App\Http\Middleware\ForceJsonResponse",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\TransformsRequest",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\TransformsRequest",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\TrimStrings",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\ValidatePostSize",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 99,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 49,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Http\Middleware\HandleCors",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 183,
"function": "handle",
"class": "Illuminate\Http\Middleware\TrustProxies",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 119,
"function": "Illuminate\Pipeline\{closure}",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 175,
"function": "then",
"class": "Illuminate\Pipeline\Pipeline",
"type": "->"
},
{
"file": "/var/www/2fauth/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 144,
"function": "sendRequestThroughRouter",
"class": "Illuminate\Foundation\Http\Kernel",
"type": "->"
},
{
"file": "/var/www/2fauth/public/index.php",
"line": 51,
"function": "handle",
"class": "Illuminate\Foundation\Http\Kernel",
"type": "->"
}
]
}

PHP error when trying to install 2FAuth

Describe the bug

When I try to install 2FAuth, I get this error. It seems to be something regarding PHP, but I can't quite figure it out. Do I have to have php7.4 installed?

Context

  • Hardware: Computer
  • YunoHost version: 11.1.2.2
  • I have access to my server: Through SSH & through the webadmin & direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 3.4.1~ynh2

Steps to reproduce

Try to install 2FAuth from the webadmin panel

Logs

https://paste.yunohost.org/raw/izavaqipol

401 Authorization Required after installing

Describe the bug

After a fresh install, accessing the subdomain shows me the error 401 Authorization Required

Context

  • Hardware: Online VPS
  • YunoHost version: 11.2.4 (stable).
  • I have access to my server: ssh and webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  • Installl 2FAuth using the web admin
    • Pick a domain for it (a subdomain on my case)
    • Select the only admin user as user
  • Access the subdomain URL after install

Expected behavior

See the login page.

Logs

No issues installing the app: https://paste.yunohost.org/raw/ebobokogat

After upgrading to version 5.0.4~ynh1 from version 5.0.3~ynh1 the 2FAuth page is blank with a bunch of errors in dev console

Describe the bug

After upgrading to version 5.0.4ynh1 from version 5.0.3ynh1 the 2FAuth page is blank (see screenshot). Also, there are a bunch of errors in the dev console.

image

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.2.10.1
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • If upgrading, current package version: from 5.0.3ynh1 to 5.0.4ynh1

Steps to reproduce

I just hit the updgrade button in webadmin.

Expected behavior

2FAuth version 5.0.4~ynh1 should display the page correctly.

Logs

Access to manifest at 'https://<YNH_DOMAIN>.com/yunohost/sso/?r=aHR0cHM6Ly9hdXRoLnVuc2Vlbi1ob3Jpem9ucy5jb20vbWFuaWZlc3QuanNvbg==' (redirected from 'https://<2FAUTH_DOMAIN>.com/manifest.json') from origin 'https://<2FAUTH_DOMAIN>.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
<YNH_DOMAIN>.com/yunohost/sso/ 
        
        
       Failed to load resource: net::ERR_FAILED
2app-06176200.js:5 TypeError: Cannot read properties of null (reading 'nextSibling')
    at nextSibling (app-06176200.js:1:53657)
    at Ct (app-06176200.js:1:45292)
    at Bt (app-06176200.js:1:45052)
    at Re (app-06176200.js:1:44890)
    at Gr (app-06176200.js:1:45406)
    at Re (app-06176200.js:1:44680)
    at v (app-06176200.js:1:37336)
    at j (app-06176200.js:1:45811)
    at mount (app-06176200.js:1:32548)
    at Ym.t.mount (app-06176200.js:1:64591)
ue @ app-06176200.js:5
<2FAUTH_DOMAIN>.com/:1 Access to internal resource at 'https://<YNH_DOMAIN>.com/yunohost/sso/' (redirected from 'https://<2FAUTH_DOMAIN>.com/manifest.json') from origin 'https://<2FAUTH_DOMAIN>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

bad php version

Matériel: Raspberry Pi à la maison
Version de YunoHost: 4.3.6.3 (stable).
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

got some strange errors ... when i create a new account, first, codes are good, but, when i accept the new accound codes gone bad ... the secret is wrong. when i manually correct the secred, code are good.

and i can't delete any account.

the 2fauth creator tell me it was designed to work with php 7.4, but when i look, it's configured to php 8.0

Can´t register webauthn device

Describe the bug

Can´t enroll webauth device (yubikey or windows FIDO)

Context

  • Hardware: VPS -- Connecting from Windows 11 and Android, Vivaldi and Edge browsers. All extensions disabled.
  • YunoHost version: 11.1.18
  • I have access to my server: SSH/WebAdmin/direct
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • Using cloudflare tunnel for internal applications and custom certificates
  • Using, or trying to install package version/branch: Latest on stable branch
  • If upgrading, current package version: ----

Steps to reproduce

  • If you performed a command from the CLI, the command itself is enough. For example:
    sudo yunohost app install the_app
  • If you used the webadmin, please perform the equivalent command from the CLI first.
  • If the error occurs in your browser, explain what you did:
    1. Login on 2FAuth interface
    2. Go to Settings
    3. Select the "WebAuth" tab
    4. Click on "Register new device"

Logs

image

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.