Browse Source

Add 90 seconds waiting time after users are creates, so that the E-Mail-Addresses get unblocked by Stats-Script.

Bernhard 5 years ago
parent
commit
74fece2f29
1 changed files with 4 additions and 0 deletions
  1. 4 0
      API_Calls.py

+ 4 - 0
API_Calls.py

@@ -477,6 +477,10 @@ class ApiUser:
             if g_db:
                 g_db.insert_user(self.l_base + str(n+self.l_min_number), password=l_pwd)
 
+        # Now wait for 90 Seconds. During this 90 seconds - latest - the Stats-Program should
+        # set verified = 1 in table account_emailaddress so that we don't get the error "E-Mail not verified"
+        time.sleep(90)
+
     def get_user_and_login(self, i=9999999, force=None):
         # The I can be much higher than our number of l_max_number
         # if this is the case, then restart counting