Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Connection or other validation by 6-digit code
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2022-06-22 21:23:36
Bonjour
je suis a la cherche l'option de confirmation par code avec son email ou nuero de telephone asu quelle je recois un code de 6 chiffres que je dois ajouter sur le site pour confirmer la validation et par la suite je mettrais pour donner le choix au membres de lactiver sur sont compte et de l,utiliser pour la connexion ou pour validé un email ou tous changement sur sont compte.

si vous avez des informations a se sujet faite le moi savoir s'il te plait, mais de faire la création de ce mode je panse que ca serait un + du coté securité de plus a donné a nos membres.
Infos lien : https://support.apple.com/fr-ca/HT204974
https://support.google.com/accounts/answer/7162782?hl=fr-

===============================

Hello
 I am looking for the option of confirmation by code with his email or asu telephone number which I receive a 6-digit code that I must add on the site to confirm the validation and then I will put to give the choice to the members to activate it on their account and use it for connection or to validate an email or any changes to their account.

if you have any information about this please let me know, but to create this mode I think it would be a plus on the security side to give to our members.
Infos link: https://support.apple.com/fr-ca/HT204974
https://support.google.com/accounts/answer/7162782?hl=fr-
Last edited by spiritblue on 2022-06-22 21:37:55
2022-06-23 03:52:09

$code = rand(100000, 999999);


You could use something like that to create a 6 digit random code, i think e-mail probably the cheaper option or just use a 2fa system like Google Authenticator, but if you want to roll your own then i would generate some conditions which would trigger the system, you would need to use some permanent storage to do this.
2022-06-23 06:10:16
mt_rand is faster
2022-06-23 06:40:24
It appears that way:


root@ks26796:/tmp# php benchmark.php
0.0027430057525635
0.0027451515197754
root@ks26796:/tmp# php benchmark.php
0.0028049945831299
0.0026988983154297
root@ks26796:/tmp# php benchmark.php
0.0027830600738525
0.0027620792388916
root@ks26796:/tmp# php benchmark.php
0.0028049945831299
0.0027379989624023
root@ks26796:/tmp# php benchmark.php
0.0027430057525635
0.0027399063110352
2022-06-23 19:18:39
I made this solution with 2 mobile verification options (SMS 2FA/Number Verification), and took 2 days to construct the login integration and conditions. It was not easy. But is very doable with almost any SMS API out there.

The rest, your just storing the 5 digit PIN to a database table, and verify that way or go the long mile and hash a token that stores for later validation. I did 3 steps because better safe than finding out later.
2022-06-23 21:59:17
thank you all, but time will tell who would be able to have this type of confirmation on the tt database 😉
=====================
merci a tous, mais le temps dira qui serait possible d'avoir ce type de confirmation sur la bdd de tt 😉
Last edited by spiritblue on 2022-06-23 21:59:49
2022-06-24 00:58:24
I kept my SQL client open all night on table view, morning I refreshed and 23 entries were there, with missing IDs which means they
1. ) they successfully validated and changed password
2. ) waited too long, and expiry removed the row

today its a very large list, with 60% many missing ids.

Some people even put the token hash in the email field, so its important to be clear to visitors on this page.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728