Conversation
This comment has been minimized.
This comment has been minimized.
|
@Tokisaki-Galaxy: Nice, good job! Do not forget to solve: |
|
Looks very polished @Tokisaki-Galaxy! Does this use TOTP? If the OpenWrt device doesn't have RTC and is offline or generally doesn't have correct time, does SSH become the only option to login? Is there a README/instructions (ideally a hint on failed attempt) on how to disable 2FA from SSH/CLI for people who may be locked out of WebUI and can't read code ahead of time? |
|
Please refer to the newly added video at the top of the description section for details. The plugin can choose either TOTP or HOTP, but TOTP is recommended. Regarding the documentation for SSH/CLI, I'm not quite sure where it should be placed. Should it be directly included in the web UI? But if users don't read it carefully, they might not be able to log in and it would be impossible to see the result. Do you have any suggestions? Previously, it was planned to add backup code, but this was abandoned because it would cause the bitward auto-fill function to become unusable and the complexity would be too high. |
d55e8c5 to
0e97b5b
Compare
This comment has been minimized.
This comment has been minimized.
0e97b5b to
fe02937
Compare
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: tokisaki galaxy <moebest@outlook.jp>
fe02937 to
bed757a
Compare
Signed-off-by: <my@email.address>row (viagit commit --signoff)<package name>: titlefirst line subject for packagesPKG_VERSIONin the Makefile[POC,WIP] Implement 2-Factor Authentication with TOTP or HOTP #7069
Feature request: Support for Passkey (WebAuthn) authentication in LuCI #8273
2026-02-04.180055.mp4
the app must changed LuCI core file because:
Security Measures
Constant-time string comparison to prevent timing attacks
Username sanitization to prevent command injection
Array-based popen to prevent shell injection
OTP format validation (exactly 6 digits)
Session destroyed if 2FA verification fails
Uses authenticated session username to prevent bypass attacks
origin repo https://github.com/Tokisaki-Galaxy/luci-app-2fa