TampereHacklab / mulysa

Mulysa member management for Hacklabs
GNU General Public License v3.0
6 stars 11 forks source link

Admin user creation gets "reset password" email, and the content is not that great #67

Closed vranki closed 4 years ago

vranki commented 4 years ago

Probably related to #53

Subject: Salasanan nollaus sivustolla example.com 
From: noreply@tampere.hacklab.fi
To: mulysaadmin@your.host.invalid
Date: Sun, 08 Dec 2019 19:24:40 -0000
Message-ID: <157583308057.34.12669868995793612051@763bc9caebd5>

Tämä viesti on lähetetty sinulle, koska olet pyytänyt example.com -sivustolla salasanan palautusta.

Määrittele uusi salasanasi oheisella sivulla:

http://example.com/accounts/reset/MQ/5c3-a5e5b0a3066c30ee1b6b/

Your username, in case you’ve forgotten: mulysaadmin@your.host.invalid

Kiitos vierailustasi sivuillamme!

example.com -sivuston ylläpitäjät
tswfi commented 4 years ago

Or does this come from adding the superadmin user? https://github.com/TampereHacklab/mulysa/blob/master/users/signals.py#L53 does not separate user types and sends the email for all users (even admin users)

vranki commented 4 years ago

Yep.. But the content of message needs to be fixed also.

vranki commented 4 years ago

Figured out how to change example.com so the mail template is "good enough". Reopen if needed.