diff --git a/scripts/register/confirm.py b/scripts/register/confirm.py index 29c117cb1..8fac6f3cc 100755 --- a/scripts/register/confirm.py +++ b/scripts/register/confirm.py @@ -39,7 +39,7 @@ while (records>0): "Auftragsnummer: " + str(int(subscription)) + "\n"+ "Passwort: " + passwd + "\n" + "Rasse: " + race + "\n\n"+ - "Bitte bewahre diese Mail sorgfältig auf, da Du deine Kundennummerund das\n"+ + "Bitte bewahre diese Mail sorgfältig auf, da Du deine Kundennummer und das\n"+ "Passwort für das Spiel benötigst. Solltest Du noch Fragen zu Deiner \n"+ "Anmeldung haben, wende Dich bitte an accounts@vinyambar.de.\n\n"+ "Das Vinyambar-Team") diff --git a/scripts/register/errors.py b/scripts/register/errors.py index dcb7b0f0c..faa2a2fea 100755 --- a/scripts/register/errors.py +++ b/scripts/register/errors.py @@ -38,6 +38,7 @@ for line in infile.readlines(): if match!=None: To = match.group(1) Reason = match.group(2) + print "ERROR: "+To+": "+Reason Msg = ("From: "+From+"\nTo: "+To+"\nSubject: Vinyambar Anmeldung fehlgeschlagen.\n\n" +"Deine Anmeldung konnte aus folgendem Grund nicht akzeptiert werden:\n "+Reason+"\n") try: diff --git a/scripts/register/register.py b/scripts/register/register.py index c10d7626b..1a53108be 100755 --- a/scripts/register/register.py +++ b/scripts/register/register.py @@ -150,14 +150,17 @@ else: cursor=db.cursor() cursor.execute("INSERT INTO users (firstname, lastname, email, address, city, phone, country, password) "+ "VALUES ('"+firstname+"', '"+lastname+"', '"+email+"', '"+address+"', '"+city+"', '"+phone+"', "+country+", '"+genpasswd()+"')") + + cursor.execute("SELECT LAST_INSERT_ID() from dual") + lastid=str(int(cursor.fetchone()[0])) if (oldrace!=None): cursor.execute("INSERT INTO subscriptions (user, race, game) "+ - "VALUES (LAST_INSERT_ID(), '"+oldrace+"', 1)") + "VALUES ("+lastid+", '"+oldrace+"', 1)") if (newrace!=None): cursor.execute("INSERT INTO subscriptions (user, race, game) "+ - "VALUES (LAST_INSERT_ID(), '"+newrace+"', 1)") + "VALUES ("+lastid+", '"+newrace+"', 2)") errors.close() unlock(sys.argv[1]+".err")