agentejo / 2fa Goto Github PK
View Code? Open in Web Editor NEW2FA addon for Cockpit CMS
2FA addon for Cockpit CMS
Hey!
Would like to flash back to an issue that was raised on the main cockpit repo: Cockpit Issue - 2FA authentication question
Context:
Using ubuntu 20.04
I use a direct installation (so no docker) - cockpit-next and cockpit-master result in the same situation.
Using nginx as the webserver.
Simply adding the 2FA folder to the cockpit/addons folder by following the instructions here
Result:
500 code in the console, no errors in the error log, only a single row with response 500 in. the access log.
And the page looks like
this, same picture as the former issue
Curious to hear if you have any tips on debugging this issue!
Would be great to have resolved.
The login works fine but when I try to open the account page of a user (e. g. /accounts/account/5e8c4a1f30656581770002f3). The following error can be found in the log:
[Sun Apr 17 23:22:58.845694 2022] [php:error] [pid 178415] [client 144.2.110.170:5461] PHP Fatal error: DASPRiD\\Enum\\AbstractEnum::__sleep(): Return type must be array when declared in
/var/www/cockpit/addons/2FA/lib/DASPRiD/Enum/AbstractEnum.php on line 217, referer: ...
Additionally there are a few warnings
PHP Warning: Private methods cannot be final as they are never overridden by other classes
I think this is because of PHP 8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.