<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Instruction on additional authentication features]]></title><description><![CDATA[<p dir="auto">I've managed to built a user authentication system with the help of video's 2 through 4. Now I'm looking for information on how to built the verification mail for after registration as well as an extra authentication layer, i.e. sending an email with a verification code.</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://community.appdrag.com/topic/496/instruction-on-additional-authentication-features</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 14:50:16 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/496.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Nov 2020 09:00:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Instruction on additional authentication features on Mon, 16 Nov 2020 22:30:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi Dick,</p>
<p dir="auto">I have a 2FA system set up for my backend.</p>
<p dir="auto">The way I've done it is: IF you have a table for Users already, when they attempt to first log in, generate a random 2FA code and UPDATE their User record by adding that newly generated token to a column dedicated to it.</p>
<p dir="auto">Bonus points if you add a timestamp.</p>
<p dir="auto">Then, email/SMS them the 2FA code.</p>
<p dir="auto">When they submit it again as part of the second authentication step, you do a SQL SELECT</p>
<p dir="auto">like</p>
<pre><code>SELECT * FROM Users where email = (their email address they submitted) AND 2FAtoken = (2FAtoken they're submitting)
</code></pre>
<p dir="auto">If you implemented the timestamping, you can also modify your SQL query to include only results within the last 5 minutes or whatever you choose.</p>
<p dir="auto">If that SELECT statement returns empty, the code is incorrect or expired. If it returns an object, you're good, and you can authenticate the user, set their token, whatever.</p>
<p dir="auto">Good luck!</p>
]]></description><link>https://community.appdrag.com/post/1873</link><guid isPermaLink="true">https://community.appdrag.com/post/1873</guid><dc:creator><![CDATA[Daniel Mulroy]]></dc:creator><pubDate>Mon, 16 Nov 2020 22:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Instruction on additional authentication features on Sun, 15 Nov 2020 09:01:49 GMT]]></title><description><![CDATA[<p dir="auto">Or perhaps provide a full user authentication system as a template <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
]]></description><link>https://community.appdrag.com/post/1860</link><guid isPermaLink="true">https://community.appdrag.com/post/1860</guid><dc:creator><![CDATA[Dick Honing]]></dc:creator><pubDate>Sun, 15 Nov 2020 09:01:49 GMT</pubDate></item></channel></rss>