[serendipity-cvs] [s9y/Serendipity] 9d058f: Send 2FA token iff user does not already have an i...

onli via php-blog-cvs <[email protected]> Wed, 08 Apr 2026 01:46:28 -0700
Newsgroups gmane.comp.serendipity.cvs
Message-ID <s9y/Serendipity/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/s9y/Serendipity
  Commit: 9d058f3345f66fd24e3de4f22d1771159251a26c
      https://github.com/s9y/Serendipity/commit/9d058f3345f66fd24e3de4f22d1771159251a26c
  Author: onli <[email protected]>
  Date:   2026-04-08 (Wed, 08 Apr 2026)

  Changed paths:
    M include/functions_config.inc.php

  Log Message:
  -----------
  Send 2FA token iff user does not already have an incoming token (#961)

* Send 2FA token iff user does not already have an incoming token
Without this check the user got a new 2fa code on every login page load.

* Only store 2fa code when mail could be sent
Also cleanup return values of `serendipity_send2faCode`



To unsubscribe from these emails, change your notification settings at https://github.com/s9y/Serendipity/settings/notifications