mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #148] 2 Factor Authentication code does not match #121
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dhuyvetter on GitHub (Nov 10, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/148
Originally assigned to: @jasonmunro on GitHub.
When I enable 2 Factor Authentication and try to log in again, I keep getting the "2 factor authentication code does not match" error. The only way to log in is with one of the backup codes. I have deleted the Cypht entry in Google Authenticator and add it again, but still doesn't work.
@jasonmunro commented on GitHub (Nov 10, 2016):
Hello! The likely issue here is time skew between your 2FA client and your server. When my server time is not accurate enough, 2FA stops working. You can use the ntp daemon to keep your server time accurate, or to sync it up one time the following command:
sudo ntpdate pool.ntp.orgIf that doesn't help let me know and we can dig into it more. Thanks for the feedback!
@ghost commented on GitHub (Nov 12, 2016):
Yeah, my Google Authenticator login keys often do not work when the time on my Android is inaccurate.
@jasonmunro commented on GitHub (Nov 12, 2016):
@manasb exactly. The times need to be in sync between the client and the server, since it's a part of what is used to calculate the 6 digit code.
@dhuyvetter commented on GitHub (Nov 14, 2016):
Thanks @jasonmunro I re-synced the time on my server and now it is working!
@dhuyvetter commented on GitHub (Mar 15, 2017):
Time kept going off, adding
ntpdate pool.ntp.orgtocrontabdidn't help, I still needed to do it manually every couple of days. So installedsudo apt install ntp: https://help.ubuntu.com/lts/serverguide/NTP.html@conspacer commented on GitHub (May 8, 2017):
@jasonmunro maybe should add a small note on this in the 2fa.ini (like: "make sure your server is synced via NTP before enabling 2FA" or something to that effect).
Spent 15 minutes trying to figure out why 2FA was not working correctly until I found this thread :)
@jasonmunro commented on GitHub (May 8, 2017):
@conspacer Great idea, I just added the following:
; In order for 2fa to work, your server MUST have an accurate date and time,
; otherwise the codes won't match up. NTP is the standard way to keep a server's
; time synced: http://www.ntp.org/
@jasonmunro commented on GitHub (May 10, 2017):
@conspacer I just did some testing and found that 2fa was not working for me in the current master or release branch. The passcodes were being accepted, but then when I was logged in, I lost all my previously saved settings! Not sure if ran into this, it was a bug I introduced here:
github.com/jasonmunro/cypht@c55ef123f4Anyway, it's fixed now in both the release and master branch.