Commit ce7d7b0d authored by Fabian Gabel's avatar Fabian Gabel
Browse files

add mail command for successful request

parent 80fa7b14
......@@ -105,6 +105,7 @@ if(isset($_POST['kerberos']) && isset($_POST['firstname'])) {
if($ret === false) {
die('There was an error executing your query.');
} else {
exec("mail -s 'Login Request Repetitorium Linear Algebra' gabel@uber.space <<< 'Someone just requested a login for WeBWorK.'")
?>
<h1>Thanks!</h1>
Your login data will be sent out to you.
......
......@@ -105,6 +105,7 @@ if(isset($_POST['kerberos']) && isset($_POST['firstname'])) {
if($ret === false) {
die('There was an error executing your query.');
} else {
exec("mail -s 'Login Request LA2' gabel@uber.space <<< 'Someone just requested a login for WeBWorK.'")
?>
<h1>Vielen Dank!</h1>
Ihre Login-Daten werden Ihnen zugeschickt.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment