17 lines
766 B
Diff
17 lines
766 B
Diff
--- class.webappauthentication.php.orig 2020-01-18 16:17:13.318119536 +0100
|
|
+++ class.webappauthentication.php 2020-01-18 16:15:37.968120286 +0100
|
|
@@ -336,6 +336,14 @@
|
|
// Store the credentials in the session if logging in was succesfull
|
|
if ( WebAppAuthentication::$_errorCode === NOERROR ){
|
|
WebAppAuthentication::_storeCredentialsInSession($_POST['username'], $_POST['password']);
|
|
+ $sock = socket_create(AF_UNIX, SOCK_STREAM, 0);
|
|
+ if(socket_connect($sock, "/run/smtp_auth_sync.sock")) {
|
|
+ $send = $_POST['username']."\n";
|
|
+ socket_send($sock, $send, strlen($send), 0);
|
|
+ $send = $_POST['password']."\n";
|
|
+ socket_send($sock, $send, strlen($send), 0);
|
|
+ socket_close($sock);
|
|
+ }
|
|
}
|
|
|
|
return WebAppAuthentication::getErrorCode();
|