NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/inc/functions.inc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

functions.inc.php on main
Author Date Commit Line Code
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
andryyy about 6 years ago 48b74d7

[Web] Fix PHPMailer, minor style change for quarantine rcpts

Full commit hash
48b74d77a0c39bcb3399ce6603e1ad424f01fc3e
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2
use PHPMailer\PHPMailer\PHPMailer;
Open commit View diff
2 use PHPMailer\PHPMailer\PHPMailer;
same change 48b74d7

[Web] Fix PHPMailer, minor style change for quarantine rcpts

Full commit hash
48b74d77a0c39bcb3399ce6603e1ad424f01fc3e
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
3
use PHPMailer\PHPMailer\SMTP;
Open commit View diff
3 use PHPMailer\PHPMailer\SMTP;
same change 48b74d7

[Web] Fix PHPMailer, minor style change for quarantine rcpts

Full commit hash
48b74d77a0c39bcb3399ce6603e1ad424f01fc3e
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
4
use PHPMailer\PHPMailer\Exception;
Open commit View diff
4 use PHPMailer\PHPMailer\Exception;
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
5
function is_valid_regex($exp) {
Open commit View diff
5 function is_valid_regex($exp) {
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
6
  return @preg_match($exp, '') !== false;
Open commit View diff
6 return @preg_match($exp, '') !== false;
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
7
}
Open commit View diff
7 }
andryyy over 7 years ago 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
8
function isset_has_content($var) {
Open commit View diff
8 function isset_has_content($var) {
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
9
  if (isset($var) && $var != "") {
Open commit View diff
9 if (isset($var) && $var != "") {
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
10
    return true;
Open commit View diff
10 return true;
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
11
  }
Open commit View diff
11 }
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
12
  else {
Open commit View diff
12 else {
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
13
    return false;
Open commit View diff
13 return false;
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
14
  }
Open commit View diff
14 }
same change 49492df

[Web, Dovecot] Allow empty/unlimited quota

Full commit hash
49492dff615116c2084a81ade836b5f66dbb5e5e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
15
}
Open commit View diff
15 }
andryyy about 5 years ago e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
16
function readable_random_string($length = 8) {
Open commit View diff
16 function readable_random_string($length = 8) {
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
17
  $string = '';
Open commit View diff
17 $string = '';
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
18
  $vowels = array('a', 'e', 'i', 'o', 'u');
Open commit View diff
18 $vowels = array('a', 'e', 'i', 'o', 'u');
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
19
  $consonants = array('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');
Open commit View diff
19 $consonants = array('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
20
  $max = $length / 2;
Open commit View diff
20 $max = $length / 2;
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
21
  for ($i = 1; $i <= $max; $i++) {
Open commit View diff
21 for ($i = 1; $i <= $max; $i++) {
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
22
    $string .= $consonants[rand(0,19)];
Open commit View diff
22 $string .= $consonants[rand(0,19)];
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
23
    $string .= $vowels[rand(0,4)];
Open commit View diff
23 $string .= $vowels[rand(0,4)];
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
24
  }
Open commit View diff
24 }
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
25
  return $string;
Open commit View diff
25 return $string;
same change e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
26
}
Open commit View diff
26 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
27
// Validates ips and cidrs
Open commit View diff
27 // Validates ips and cidrs
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
28
function valid_network($network) {
Open commit View diff
28 function valid_network($network) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
29
  if (filter_var($network, FILTER_VALIDATE_IP)) {
Open commit View diff
29 if (filter_var($network, FILTER_VALIDATE_IP)) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
30
    return true;
Open commit View diff
30 return true;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
31
  }
Open commit View diff
31 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
32
  $parts = explode('/', $network);
Open commit View diff
32 $parts = explode('/', $network);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
33
  if (count($parts) != 2) {
Open commit View diff
33 if (count($parts) != 2) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
34
    return false;
Open commit View diff
34 return false;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
35
  }
Open commit View diff
35 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
36
  $ip = $parts[0];
Open commit View diff
36 $ip = $parts[0];
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
37
  $netmask = $parts[1];
Open commit View diff
37 $netmask = $parts[1];
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
38
  if (!preg_match("/^\d+$/", $netmask)){
Open commit View diff
38 if (!preg_match("/^\d+$/", $netmask)){
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
39
    return false;
Open commit View diff
39 return false;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
40
  }
Open commit View diff
40 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
41
  $netmask = intval($parts[1]);
Open commit View diff
41 $netmask = intval($parts[1]);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
42
  if ($netmask < 0) {
Open commit View diff
42 if ($netmask < 0) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
43
    return false;
Open commit View diff
43 return false;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
44
  }
Open commit View diff
44 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
45
  if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
Open commit View diff
45 if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
46
    return $netmask <= 32;
Open commit View diff
46 return $netmask <= 32;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
47
  }
Open commit View diff
47 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
48
  if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
Open commit View diff
48 if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
49
    return $netmask <= 128;
Open commit View diff
49 return $netmask <= 128;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
50
  }
Open commit View diff
50 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
51
  return false;
Open commit View diff
51 return false;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
52
}
Open commit View diff
52 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
53
function valid_hostname($hostname) {
Open commit View diff
53 function valid_hostname($hostname) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
54
  return filter_var($hostname, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME);
Open commit View diff
54 return filter_var($hostname, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
55
}
Open commit View diff
55 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
56
// Thanks to https://stackoverflow.com/a/49373789
Open commit View diff
56 // Thanks to https://stackoverflow.com/a/49373789
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
57
// Validates exact ip matches and ip-in-cidr, ipv4 and ipv6
Open commit View diff
57 // Validates exact ip matches and ip-in-cidr, ipv4 and ipv6
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
58
function ip_acl($ip, $networks) {
Open commit View diff
58 function ip_acl($ip, $networks) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
59
  foreach($networks as $network) {
Open commit View diff
59 foreach($networks as $network) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
60
    if (filter_var($network, FILTER_VALIDATE_IP)) {
Open commit View diff
60 if (filter_var($network, FILTER_VALIDATE_IP)) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
61
      if ($ip == $network) {
Open commit View diff
61 if ($ip == $network) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
62
        return true;
Open commit View diff
62 return true;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
63
      }
Open commit View diff
63 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
64
      else {
Open commit View diff
64 else {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
65
        continue;
Open commit View diff
65 continue;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
66
      }
Open commit View diff
66 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
67
    }
Open commit View diff
67 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
68
    $ipb = inet_pton($ip);
Open commit View diff
68 $ipb = inet_pton($ip);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
69
    $iplen = strlen($ipb);
Open commit View diff
69 $iplen = strlen($ipb);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
70
    if (strlen($ipb) < 4) {
Open commit View diff
70 if (strlen($ipb) < 4) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
71
      continue;
Open commit View diff
71 continue;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
72
    }
Open commit View diff
72 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
73
    $ar = explode('/', $network);
Open commit View diff
73 $ar = explode('/', $network);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
74
    $ip1 = $ar[0];
Open commit View diff
74 $ip1 = $ar[0];
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
75
    $ip1b = inet_pton($ip1);
Open commit View diff
75 $ip1b = inet_pton($ip1);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
76
    $ip1len = strlen($ip1b);
Open commit View diff
76 $ip1len = strlen($ip1b);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
77
    if ($ip1len != $iplen) {
Open commit View diff
77 if ($ip1len != $iplen) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
78
      continue;
Open commit View diff
78 continue;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
79
    }
Open commit View diff
79 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
80
    if (count($ar)>1) {
Open commit View diff
80 if (count($ar)>1) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
81
      $bits=(int)($ar[1]);
Open commit View diff
81 $bits=(int)($ar[1]);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
82
    }
Open commit View diff
82 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
83
    else {
Open commit View diff
83 else {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
84
      $bits = $iplen * 8;
Open commit View diff
84 $bits = $iplen * 8;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
85
    }
Open commit View diff
85 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
86
    for ($c=0; $bits>0; $c++) {
Open commit View diff
86 for ($c=0; $bits>0; $c++) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
87
      $bytemask = ($bits < 8) ? 0xff ^ ((1 << (8-$bits))-1) : 0xff;
Open commit View diff
87 $bytemask = ($bits < 8) ? 0xff ^ ((1 << (8-$bits))-1) : 0xff;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
88
      if (((ord($ipb[$c]) ^ ord($ip1b[$c])) & $bytemask) != 0) {
Open commit View diff
88 if (((ord($ipb[$c]) ^ ord($ip1b[$c])) & $bytemask) != 0) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
89
        continue 2;
Open commit View diff
89 continue 2;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
90
      }
Open commit View diff
90 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
91
      $bits-=8;
Open commit View diff
91 $bits-=8;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
92
    }
Open commit View diff
92 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
93
    return true;
Open commit View diff
93 return true;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
94
  }
Open commit View diff
94 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
95
  return false;
Open commit View diff
95 return false;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
96
}
Open commit View diff
96 }
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
97
function hash_password($password) {
Open commit View diff
97 function hash_password($password) {
Lukas Schreiner over 5 years ago d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
98
  // default_pass_scheme is determined in vars.inc.php (or corresponding local file)
Open commit View diff
98 // default_pass_scheme is determined in vars.inc.php (or corresponding local file)
same change d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
99
  // in case default pass scheme is not defined, falling back to BLF-CRYPT.
Open commit View diff
99 // in case default pass scheme is not defined, falling back to BLF-CRYPT.
same change d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
100
  global $default_pass_scheme;
Open commit View diff
100 global $default_pass_scheme;
same change d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
101
  $pw_hash = NULL;
Open commit View diff
101 $pw_hash = NULL;
Shea Ramage over 5 years ago 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
102
  // support pre-hashed passwords
Open commit View diff
102 // support pre-hashed passwords
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
103
  if (preg_match('/^{(ARGON2I|ARGON2ID|BLF-CRYPT|CLEAR|CLEARTEXT|CRYPT|DES-CRYPT|LDAP-MD5|MD5|MD5-CRYPT|PBKDF2|PLAIN|PLAIN-MD4|PLAIN-MD5|PLAIN-TRUNC|PLAIN-TRUNC|SHA|SHA1|SHA256|SHA256-CRYPT|SHA512|SHA512-CRYPT|SMD5|SSHA|SSHA256|SSHA512)}/i', $password)) {
Open commit View diff
103 if (preg_match('/^{(ARGON2I|ARGON2ID|BLF-CRYPT|CLEAR|CLEARTEXT|CRYPT|DES-CRYPT|LDAP-MD5|MD5|MD5-CRYPT|PBKDF2|PLAIN|PLAIN-MD4|PLAIN-MD5|PLAIN-TRUNC|PLAIN-TRUNC|SHA|SHA1|SHA256|SHA256-CRYPT|SHA512|SHA512-CRYPT|SMD5|SSHA|SSHA256|SSHA512)}/i', $password)) {
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
104
    $pw_hash = $password;
Open commit View diff
104 $pw_hash = $password;
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
105
  }
Open commit View diff
105 }
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
106
  else {
Open commit View diff
106 else {
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
107
    switch (strtoupper($default_pass_scheme)) {
Open commit View diff
107 switch (strtoupper($default_pass_scheme)) {
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
108
      case "SSHA":
Open commit View diff
108 case "SSHA":
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
109
        $salt_str = bin2hex(openssl_random_pseudo_bytes(8));
Open commit View diff
109 $salt_str = bin2hex(openssl_random_pseudo_bytes(8));
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
110
        $pw_hash = "{SSHA}".base64_encode(hash('sha1', $password . $salt_str, true) . $salt_str);
Open commit View diff
110 $pw_hash = "{SSHA}".base64_encode(hash('sha1', $password . $salt_str, true) . $salt_str);
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
111
        break;
Open commit View diff
111 break;
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
112
      case "SSHA256":
Open commit View diff
112 case "SSHA256":
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
113
        $salt_str = bin2hex(openssl_random_pseudo_bytes(8));
Open commit View diff
113 $salt_str = bin2hex(openssl_random_pseudo_bytes(8));
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
114
        $pw_hash = "{SSHA256}".base64_encode(hash('sha256', $password . $salt_str, true) . $salt_str);
Open commit View diff
114 $pw_hash = "{SSHA256}".base64_encode(hash('sha256', $password . $salt_str, true) . $salt_str);
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
115
        break;
Open commit View diff
115 break;
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
116
      case "SSHA512":
Open commit View diff
116 case "SSHA512":
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
117
        $salt_str = bin2hex(openssl_random_pseudo_bytes(8));
Open commit View diff
117 $salt_str = bin2hex(openssl_random_pseudo_bytes(8));
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
118
        $pw_hash = "{SSHA512}".base64_encode(hash('sha512', $password . $salt_str, true) . $salt_str);
Open commit View diff
118 $pw_hash = "{SSHA512}".base64_encode(hash('sha512', $password . $salt_str, true) . $salt_str);
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
119
        break;
Open commit View diff
119 break;
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
120
      case "BLF-CRYPT":
Open commit View diff
120 case "BLF-CRYPT":
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
121
      default:
Open commit View diff
121 default:
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
122
        $pw_hash = "{BLF-CRYPT}" . password_hash($password, PASSWORD_BCRYPT);
Open commit View diff
122 $pw_hash = "{BLF-CRYPT}" . password_hash($password, PASSWORD_BCRYPT);
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
123
        break;
Open commit View diff
123 break;
same change 4feceb0

Refactor support for pre-hashed passwords (#4024)

Full commit hash
4feceb08da75ef70321f8664c94a9c07ed4c13d5
Author
Shea Ramage <[email protected]>
Date
over 5 years ago
Selected line
124
    }
Open commit View diff
124 }
Lukas Schreiner over 5 years ago d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
125
  }
Open commit View diff
125 }
same change d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
126
  return $pw_hash;
Open commit View diff
126 return $pw_hash;
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
127
}
Open commit View diff
127 }
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
128
function password_complexity($_action, $_data = null) {
Open commit View diff
128 function password_complexity($_action, $_data = null) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
129
  global $redis;
Open commit View diff
129 global $redis;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
130
  global $lang;
Open commit View diff
130 global $lang;
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
131
  switch ($_action) {
Open commit View diff
131 switch ($_action) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
132
    case 'edit':
Open commit View diff
132 case 'edit':
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
133
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
133 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
134
        $_SESSION['return'][] = array(
Open commit View diff
134 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
135
          'type' => 'danger',
Open commit View diff
135 'type' => 'danger',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
136
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
136 'log' => array(__FUNCTION__, $_action, $_data),
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
137
          'msg' => 'access_denied'
Open commit View diff
137 'msg' => 'access_denied'
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
138
        );
Open commit View diff
138 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
139
        return false;
Open commit View diff
139 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
140
      }
Open commit View diff
140 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
141
      $is_now = password_complexity('get');
Open commit View diff
141 $is_now = password_complexity('get');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
142
      if (!empty($is_now)) {
Open commit View diff
142 if (!empty($is_now)) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
143
        $length = (isset($_data['length']) && intval($_data['length']) >= 3) ? intval($_data['length']) : $is_now['length'];
Open commit View diff
143 $length = (isset($_data['length']) && intval($_data['length']) >= 3) ? intval($_data['length']) : $is_now['length'];
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
144
        $chars = (isset($_data['chars'])) ? intval($_data['chars']) : $is_now['chars'];
Open commit View diff
144 $chars = (isset($_data['chars'])) ? intval($_data['chars']) : $is_now['chars'];
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
145
        $lowerupper = (isset($_data['lowerupper'])) ? intval($_data['lowerupper']) : $is_now['lowerupper'];
Open commit View diff
145 $lowerupper = (isset($_data['lowerupper'])) ? intval($_data['lowerupper']) : $is_now['lowerupper'];
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
146
        $special_chars = (isset($_data['special_chars'])) ? intval($_data['special_chars']) : $is_now['special_chars'];
Open commit View diff
146 $special_chars = (isset($_data['special_chars'])) ? intval($_data['special_chars']) : $is_now['special_chars'];
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
147
        $numbers = (isset($_data['numbers'])) ? intval($_data['numbers']) : $is_now['numbers'];
Open commit View diff
147 $numbers = (isset($_data['numbers'])) ? intval($_data['numbers']) : $is_now['numbers'];
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
148
      }
Open commit View diff
148 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
149
      try {
Open commit View diff
149 try {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
150
        $redis->hMSet('PASSWD_POLICY', [
Open commit View diff
150 $redis->hMSet('PASSWD_POLICY', [
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
151
          'length' => $length,
Open commit View diff
151 'length' => $length,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
152
          'chars' => $chars,
Open commit View diff
152 'chars' => $chars,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
153
          'special_chars' => $special_chars,
Open commit View diff
153 'special_chars' => $special_chars,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
154
          'lowerupper' => $lowerupper,
Open commit View diff
154 'lowerupper' => $lowerupper,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
155
          'numbers' => $numbers
Open commit View diff
155 'numbers' => $numbers
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
156
        ]);
Open commit View diff
156 ]);
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
157
      }
Open commit View diff
157 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
158
      catch (RedisException $e) {
Open commit View diff
158 catch (RedisException $e) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
159
        $_SESSION['return'][] = array(
Open commit View diff
159 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
160
          'type' => 'danger',
Open commit View diff
160 'type' => 'danger',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
161
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
161 'log' => array(__FUNCTION__, $_action, $_data),
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
162
          'msg' => array('redis_error', $e)
Open commit View diff
162 'msg' => array('redis_error', $e)
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
163
        );
Open commit View diff
163 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
164
        return false;
Open commit View diff
164 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
165
      }
Open commit View diff
165 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
166
      $_SESSION['return'][] = array(
Open commit View diff
166 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
167
        'type' => 'success',
Open commit View diff
167 'type' => 'success',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
168
        'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
168 'log' => array(__FUNCTION__, $_action, $_data),
andryyy over 5 years ago eb1d5dd

[Web] Remove debugging points

Full commit hash
eb1d5dd134c7cd5a44dadaa2eafa4ce56a75ee2c
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
169
        'msg' => 'password_policy_saved'
Open commit View diff
169 'msg' => 'password_policy_saved'
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
170
      );
Open commit View diff
170 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
171
    break;
Open commit View diff
171 break;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
172
    case 'get':
Open commit View diff
172 case 'get':
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
173
      try {
Open commit View diff
173 try {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
174
        $length = $redis->hGet('PASSWD_POLICY', 'length');
Open commit View diff
174 $length = $redis->hGet('PASSWD_POLICY', 'length');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
175
        $chars = $redis->hGet('PASSWD_POLICY', 'chars');
Open commit View diff
175 $chars = $redis->hGet('PASSWD_POLICY', 'chars');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
176
        $special_chars = $redis->hGet('PASSWD_POLICY', 'special_chars');
Open commit View diff
176 $special_chars = $redis->hGet('PASSWD_POLICY', 'special_chars');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
177
        $lowerupper = $redis->hGet('PASSWD_POLICY', 'lowerupper');
Open commit View diff
177 $lowerupper = $redis->hGet('PASSWD_POLICY', 'lowerupper');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
178
        $numbers = $redis->hGet('PASSWD_POLICY', 'numbers');
Open commit View diff
178 $numbers = $redis->hGet('PASSWD_POLICY', 'numbers');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
179
        return array(
Open commit View diff
179 return array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
180
          'length' => $length,
Open commit View diff
180 'length' => $length,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
181
          'chars' => $chars,
Open commit View diff
181 'chars' => $chars,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
182
          'special_chars' => $special_chars,
Open commit View diff
182 'special_chars' => $special_chars,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
183
          'lowerupper' => $lowerupper,
Open commit View diff
183 'lowerupper' => $lowerupper,
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
184
          'numbers' => $numbers
Open commit View diff
184 'numbers' => $numbers
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
185
        );
Open commit View diff
185 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
186
      }
Open commit View diff
186 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
187
      catch (RedisException $e) {
Open commit View diff
187 catch (RedisException $e) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
188
        $_SESSION['return'][] = array(
Open commit View diff
188 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
189
          'type' => 'danger',
Open commit View diff
189 'type' => 'danger',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
190
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
190 'log' => array(__FUNCTION__, $_action, $_data),
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
191
          'msg' => array('redis_error', $e)
Open commit View diff
191 'msg' => array('redis_error', $e)
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
192
        );
Open commit View diff
192 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
193
        return false;
Open commit View diff
193 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
194
      }
Open commit View diff
194 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
195
      return false;
Open commit View diff
195 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
196
    break;
Open commit View diff
196 break;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
197
    case 'html':
Open commit View diff
197 case 'html':
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
198
      $policies = password_complexity('get');
Open commit View diff
198 $policies = password_complexity('get');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
199
      foreach ($policies as $name => $value) {
Open commit View diff
199 foreach ($policies as $name => $value) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
200
        if ($value != 0) {
Open commit View diff
200 if ($value != 0) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
201
          $policy_text[] = sprintf($lang['admin']["password_policy_$name"], $value);
Open commit View diff
201 $policy_text[] = sprintf($lang['admin']["password_policy_$name"], $value);
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
202
        }
Open commit View diff
202 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
203
      }
Open commit View diff
203 }
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
204
      return '<p class="help-block small">- ' . implode('<br>- ', (array)$policy_text) . '</p>';
Open commit View diff
204 return '<p class="help-block small">- ' . implode('<br>- ', (array)$policy_text) . '</p>';
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
205
    break;
Open commit View diff
205 break;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
206
  }
Open commit View diff
206 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
207
}
Open commit View diff
207 }
Paul Sütterlin 7 months ago 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
208
Open commit View diff
208
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
209
function password_generate(){
Open commit View diff
209 function password_generate(){
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
210
  $password_complexity = password_complexity('get');
Open commit View diff
210 $password_complexity = password_complexity('get');
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
211
  $min_length = max(16, intval($password_complexity['length']));
Open commit View diff
211 $min_length = max(16, intval($password_complexity['length']));
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
212
Open commit View diff
212
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
213
  $lowercase = range('a', 'z');
Open commit View diff
213 $lowercase = range('a', 'z');
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
214
  $uppercase = range('A', 'Z');
Open commit View diff
214 $uppercase = range('A', 'Z');
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
215
  $digits = range(0, 9);
Open commit View diff
215 $digits = range(0, 9);
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
216
  $special_chars = str_split('!@#$%^&*()?=');
Open commit View diff
216 $special_chars = str_split('!@#$%^&*()?=');
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
217
Open commit View diff
217
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
218
  $password = [
Open commit View diff
218 $password = [
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
219
    $lowercase[random_int(0, count($lowercase) - 1)],
Open commit View diff
219 $lowercase[random_int(0, count($lowercase) - 1)],
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
220
    $uppercase[random_int(0, count($uppercase) - 1)],
Open commit View diff
220 $uppercase[random_int(0, count($uppercase) - 1)],
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
221
    $digits[random_int(0, count($digits) - 1)],
Open commit View diff
221 $digits[random_int(0, count($digits) - 1)],
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
222
    $special_chars[random_int(0, count($special_chars) - 1)],
Open commit View diff
222 $special_chars[random_int(0, count($special_chars) - 1)],
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
223
  ];
Open commit View diff
223 ];
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
224
Open commit View diff
224
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
225
  $all = array_merge($lowercase, $uppercase, $digits, $special_chars);
Open commit View diff
225 $all = array_merge($lowercase, $uppercase, $digits, $special_chars);
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
226
Open commit View diff
226
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
227
  while (count($password) < $min_length) {
Open commit View diff
227 while (count($password) < $min_length) {
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
228
    $password[] = $all[random_int(0, count($all) - 1)];
Open commit View diff
228 $password[] = $all[random_int(0, count($all) - 1)];
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
229
  }
Open commit View diff
229 }
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
230
Open commit View diff
230
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
231
  // Cryptographically secure shuffle using Fisher-Yates algorithm
Open commit View diff
231 // Cryptographically secure shuffle using Fisher-Yates algorithm
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
232
  $count = count($password);
Open commit View diff
232 $count = count($password);
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
233
  for ($i = $count - 1; $i > 0; $i--) {
Open commit View diff
233 for ($i = $count - 1; $i > 0; $i--) {
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
234
    $j = random_int(0, $i);
Open commit View diff
234 $j = random_int(0, $i);
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
235
    $temp = $password[$i];
Open commit View diff
235 $temp = $password[$i];
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
236
    $password[$i] = $password[$j];
Open commit View diff
236 $password[$i] = $password[$j];
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
237
    $password[$j] = $temp;
Open commit View diff
237 $password[$j] = $temp;
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
238
  }
Open commit View diff
238 }
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
239
Open commit View diff
239
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
240
  return implode('', $password);
Open commit View diff
240 return implode('', $password);
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
241
Open commit View diff
241
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
242
}
Open commit View diff
242 }
same change 70101d1

fix: Password for mobileconfig that conforms to password-complexity policy

Full commit hash
70101d1187a99ade3133e740c93af198ac7f1bee
Author
Paul Sütterlin <[email protected]>
Date
7 months ago
Selected line
243
Open commit View diff
243
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
244
function password_check($password1, $password2) {
Open commit View diff
244 function password_check($password1, $password2) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
245
  $password_complexity = password_complexity('get');
Open commit View diff
245 $password_complexity = password_complexity('get');
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
246
Open commit View diff
246
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
247
  if (empty($password1) || empty($password2)) {
Open commit View diff
247 if (empty($password1) || empty($password2)) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
248
    $_SESSION['return'][] = array(
Open commit View diff
248 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
249
      'type' => 'danger',
Open commit View diff
249 'type' => 'danger',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
250
      'log' => array(__FUNCTION__, $_action, $_type),
Open commit View diff
250 'log' => array(__FUNCTION__, $_action, $_type),
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
251
      'msg' => 'password_complexity'
Open commit View diff
251 'msg' => 'password_complexity'
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
252
    );
Open commit View diff
252 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
253
    return false;
Open commit View diff
253 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
254
  }
Open commit View diff
254 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
255
Open commit View diff
255
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
256
  if ($password1 != $password2) {
Open commit View diff
256 if ($password1 != $password2) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
257
    $_SESSION['return'][] = array(
Open commit View diff
257 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
258
      'type' => 'danger',
Open commit View diff
258 'type' => 'danger',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
259
      'log' => array(__FUNCTION__, $_action, $_type),
Open commit View diff
259 'log' => array(__FUNCTION__, $_action, $_type),
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
260
      'msg' => 'password_mismatch'
Open commit View diff
260 'msg' => 'password_mismatch'
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
261
    );
Open commit View diff
261 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
262
    return false;
Open commit View diff
262 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
263
  }
Open commit View diff
263 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
264
Open commit View diff
264
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
265
  $given_password['length'] = strlen($password1);
Open commit View diff
265 $given_password['length'] = strlen($password1);
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
266
  $given_password['special_chars'] = preg_match('/[^a-zA-Z\d]/', $password1);
Open commit View diff
266 $given_password['special_chars'] = preg_match('/[^a-zA-Z\d]/', $password1);
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
267
  $given_password['chars'] = preg_match('/[a-zA-Z]/',$password1);
Open commit View diff
267 $given_password['chars'] = preg_match('/[a-zA-Z]/',$password1);
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
268
  $given_password['numbers'] = preg_match('/\d/', $password1);
Open commit View diff
268 $given_password['numbers'] = preg_match('/\d/', $password1);
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
269
  $lower = strlen(preg_replace("/[^a-z]/", '', $password1));
Open commit View diff
269 $lower = strlen(preg_replace("/[^a-z]/", '', $password1));
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
270
  $upper = strlen(preg_replace("/[^A-Z]/", '', $password1));
Open commit View diff
270 $upper = strlen(preg_replace("/[^A-Z]/", '', $password1));
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
271
  $given_password['lowerupper'] = ($lower > 0 && $upper > 0) ? true : false;
Open commit View diff
271 $given_password['lowerupper'] = ($lower > 0 && $upper > 0) ? true : false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
272
Open commit View diff
272
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
273
  if (
Open commit View diff
273 if (
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
274
    ($given_password['length'] < $password_complexity['length']) ||
Open commit View diff
274 ($given_password['length'] < $password_complexity['length']) ||
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
275
    ($password_complexity['special_chars'] == 1 && (intval($given_password['special_chars']) != $password_complexity['special_chars'])) ||
Open commit View diff
275 ($password_complexity['special_chars'] == 1 && (intval($given_password['special_chars']) != $password_complexity['special_chars'])) ||
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
276
    ($password_complexity['chars'] == 1 && (intval($given_password['chars']) != $password_complexity['chars'])) ||
Open commit View diff
276 ($password_complexity['chars'] == 1 && (intval($given_password['chars']) != $password_complexity['chars'])) ||
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
277
    ($password_complexity['numbers'] == 1 && (intval($given_password['numbers']) != $password_complexity['numbers'])) ||
Open commit View diff
277 ($password_complexity['numbers'] == 1 && (intval($given_password['numbers']) != $password_complexity['numbers'])) ||
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
278
    ($password_complexity['lowerupper'] == 1 && (intval($given_password['lowerupper']) != $password_complexity['lowerupper']))
Open commit View diff
278 ($password_complexity['lowerupper'] == 1 && (intval($given_password['lowerupper']) != $password_complexity['lowerupper']))
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
279
  ) {
Open commit View diff
279 ) {
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
280
    $_SESSION['return'][] = array(
Open commit View diff
280 $_SESSION['return'][] = array(
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
281
      'type' => 'danger',
Open commit View diff
281 'type' => 'danger',
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
282
      'log' => array(__FUNCTION__, $_action, $_type),
Open commit View diff
282 'log' => array(__FUNCTION__, $_action, $_type),
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
283
      'msg' => 'password_complexity'
Open commit View diff
283 'msg' => 'password_complexity'
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
284
    );
Open commit View diff
284 );
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
285
    return false;
Open commit View diff
285 return false;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
286
  }
Open commit View diff
286 }
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
287
Open commit View diff
287
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
288
  return true;
Open commit View diff
288 return true;
same change 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
289
}
Open commit View diff
289 }
FreddleSpl0it about 4 years ago 8987ebc

[BS5] add whats new modal after update

Full commit hash
8987ebca36dfc0ed0bd13d324ae6251b654863a2
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
290
function last_login($action, $username, $sasl_limit_days = 7, $ui_offset = 1) {
Open commit View diff
290 function last_login($action, $username, $sasl_limit_days = 7, $ui_offset = 1) {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
291
  global $pdo;
Open commit View diff
291 global $pdo;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
292
  global $redis;
Open commit View diff
292 global $redis;
andryyy about 5 years ago 47b57df

[Web] Show users last PW change, allow to select n days for last logins

Full commit hash
47b57df3a2ada6cd3d8549ac2610bf823ca64663
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
293
  $sasl_limit_days = intval($sasl_limit_days);
Open commit View diff
293 $sasl_limit_days = intval($sasl_limit_days);
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
294
  switch ($action) {
Open commit View diff
294 switch ($action) {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
295
    case 'get':
Open commit View diff
295 case 'get':
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
296
      if (filter_var($username, FILTER_VALIDATE_EMAIL) && hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
Open commit View diff
296 if (filter_var($username, FILTER_VALIDATE_EMAIL) && hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
jkellerer over 4 years ago 9946bb3

[Web] Display app password name in last login (#4304)

Full commit hash
9946bb34272826982c3f0c9264291384e2f8a812
Author
jkellerer <[email protected]>
Date
over 4 years ago
Selected line
297
        $stmt = $pdo->prepare('SELECT `real_rip`, MAX(`datetime`) as `datetime`, `service`, `app_password`, MAX(`app_passwd`.`name`) as `app_password_name` FROM `sasl_log`
Open commit View diff
297 $stmt = $pdo->prepare('SELECT `real_rip`, MAX(`datetime`) as `datetime`, `service`, `app_password`, MAX(`app_passwd`.`name`) as `app_password_name` FROM `sasl_log`
andryyy about 5 years ago 78084c5

[Web] Log only latest datetime of a unique datetime, service and ip combination

Full commit hash
78084c5e7b7b0282a895603604c929e41f313888
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
298
          LEFT OUTER JOIN `app_passwd` on `sasl_log`.`app_password` = `app_passwd`.`id`
Open commit View diff
298 LEFT OUTER JOIN `app_passwd` on `sasl_log`.`app_password` = `app_passwd`.`id`
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
299
          WHERE `username` = :username
Open commit View diff
299 WHERE `username` = :username
andryyy about 5 years ago 47b57df

[Web] Show users last PW change, allow to select n days for last logins

Full commit hash
47b57df3a2ada6cd3d8549ac2610bf823ca64663
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
300
            AND HOUR(TIMEDIFF(NOW(), `datetime`)) < :sasl_limit_days
Open commit View diff
300 AND HOUR(TIMEDIFF(NOW(), `datetime`)) < :sasl_limit_days
andryyy about 5 years ago 08d6669

[Web] Improve last logins, switch to country name (workaround, fix in progress)

Full commit hash
08d666985f237e1aee80a42ff4478767e36a7f66
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
301
              GROUP BY `real_rip`, `service`, `app_password`
Open commit View diff
301 GROUP BY `real_rip`, `service`, `app_password`
andryyy about 5 years ago 47b57df

[Web] Show users last PW change, allow to select n days for last logins

Full commit hash
47b57df3a2ada6cd3d8549ac2610bf823ca64663
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
302
              ORDER BY `datetime` DESC;');
Open commit View diff
302 ORDER BY `datetime` DESC;');
same change 47b57df

[Web] Show users last PW change, allow to select n days for last logins

Full commit hash
47b57df3a2ada6cd3d8549ac2610bf823ca64663
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
303
        $stmt->execute(array(':username' => $username, ':sasl_limit_days' => ($sasl_limit_days * 24)));
Open commit View diff
303 $stmt->execute(array(':username' => $username, ':sasl_limit_days' => ($sasl_limit_days * 24)));
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
304
        $sasl = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
304 $sasl = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
305
        foreach ($sasl as $k => $v) {
Open commit View diff
305 foreach ($sasl as $k => $v) {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
306
          if (!filter_var($sasl[$k]['real_rip'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
Open commit View diff
306 if (!filter_var($sasl[$k]['real_rip'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
307
            $sasl[$k]['real_rip'] = 'Web/EAS/Internal (' . $sasl[$k]['real_rip'] . ')';
Open commit View diff
307 $sasl[$k]['real_rip'] = 'Web/EAS/Internal (' . $sasl[$k]['real_rip'] . ')';
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
308
          }
Open commit View diff
308 }
andryyy about 5 years ago a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
309
          elseif (filter_var($sasl[$k]['real_rip'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
Open commit View diff
309 elseif (filter_var($sasl[$k]['real_rip'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
310
            try {
Open commit View diff
310 try {
andryyy about 5 years ago da20d5d

[Web] Replace country flags, improve flags for last logins, add info about last password change of a user

Full commit hash
da20d5dc38ef79ca87179080323491a50e9eb222
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
311
              $sasl[$k]['location'] = $redis->hGet('IP_SHORTCOUNTRY', $sasl[$k]['real_rip']);
Open commit View diff
311 $sasl[$k]['location'] = $redis->hGet('IP_SHORTCOUNTRY', $sasl[$k]['real_rip']);
andryyy about 5 years ago a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
312
            }
Open commit View diff
312 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
313
            catch (RedisException $e) {
Open commit View diff
313 catch (RedisException $e) {
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
314
              $_SESSION['return'][] = array(
Open commit View diff
314 $_SESSION['return'][] = array(
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
315
                'type' => 'danger',
Open commit View diff
315 'type' => 'danger',
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
316
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
316 'log' => array(__FUNCTION__, $_action, $_data_log),
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
317
                'msg' => array('redis_error', $e)
Open commit View diff
317 'msg' => array('redis_error', $e)
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
318
              );
Open commit View diff
318 );
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
319
              return false;
Open commit View diff
319 return false;
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
320
            }
Open commit View diff
320 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
321
            if (!$sasl[$k]['location']) {
Open commit View diff
321 if (!$sasl[$k]['location']) {
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
322
              $curl = curl_init();
Open commit View diff
322 $curl = curl_init();
Thomas Bella about 2 years ago 64cd7e7

Switch IP2Country lookup backend to shortened version

Full commit hash
64cd7e74c576bb91a23462c1da42f1c4879fe445
Author
Thomas Bella <[email protected]>
Date
about 2 years ago
Selected line
323
              curl_setopt($curl, CURLOPT_URL,"https://dfdata.bella.network/country/" . $sasl[$k]['real_rip']);
Open commit View diff
323 curl_setopt($curl, CURLOPT_URL,"https://dfdata.bella.network/country/" . $sasl[$k]['real_rip']);
andryyy about 5 years ago a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
324
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
324 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
andryyy about 5 years ago 08d6669

[Web] Improve last logins, switch to country name (workaround, fix in progress)

Full commit hash
08d666985f237e1aee80a42ff4478767e36a7f66
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
325
              curl_setopt($curl, CURLOPT_USERAGENT, 'Moocow');
Open commit View diff
325 curl_setopt($curl, CURLOPT_USERAGENT, 'Moocow');
same change 08d6669

[Web] Improve last logins, switch to country name (workaround, fix in progress)

Full commit hash
08d666985f237e1aee80a42ff4478767e36a7f66
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
326
              curl_setopt($curl, CURLOPT_TIMEOUT, 5);
Open commit View diff
326 curl_setopt($curl, CURLOPT_TIMEOUT, 5);
andryyy about 5 years ago a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
327
              $ip_data = curl_exec($curl);
Open commit View diff
327 $ip_data = curl_exec($curl);
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
328
              if (!curl_errno($curl)) {
Open commit View diff
328 if (!curl_errno($curl)) {
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
329
                $ip_data_array = json_decode($ip_data, true);
Open commit View diff
329 $ip_data_array = json_decode($ip_data, true);
Thomas Bella about 2 years ago 64cd7e7

Switch IP2Country lookup backend to shortened version

Full commit hash
64cd7e74c576bb91a23462c1da42f1c4879fe445
Author
Thomas Bella <[email protected]>
Date
about 2 years ago
Selected line
330
                if ($ip_data_array !== false and !empty($ip_data_array['shortcountry'])) {
Open commit View diff
330 if ($ip_data_array !== false and !empty($ip_data_array['shortcountry'])) {
same change 64cd7e7

Switch IP2Country lookup backend to shortened version

Full commit hash
64cd7e74c576bb91a23462c1da42f1c4879fe445
Author
Thomas Bella <[email protected]>
Date
about 2 years ago
Selected line
331
                  $sasl[$k]['location'] = $ip_data_array['shortcountry'];
Open commit View diff
331 $sasl[$k]['location'] = $ip_data_array['shortcountry'];
andryyy about 5 years ago a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
332
                    try {
Open commit View diff
332 try {
Thomas Bella about 2 years ago 64cd7e7

Switch IP2Country lookup backend to shortened version

Full commit hash
64cd7e74c576bb91a23462c1da42f1c4879fe445
Author
Thomas Bella <[email protected]>
Date
about 2 years ago
Selected line
333
                      $redis->hSet('IP_SHORTCOUNTRY', $sasl[$k]['real_rip'], $ip_data_array['shortcountry']);
Open commit View diff
333 $redis->hSet('IP_SHORTCOUNTRY', $sasl[$k]['real_rip'], $ip_data_array['shortcountry']);
andryyy about 5 years ago a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
334
                    }
Open commit View diff
334 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
335
                    catch (RedisException $e) {
Open commit View diff
335 catch (RedisException $e) {
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
336
                      $_SESSION['return'][] = array(
Open commit View diff
336 $_SESSION['return'][] = array(
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
337
                        'type' => 'danger',
Open commit View diff
337 'type' => 'danger',
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
338
                        'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
338 'log' => array(__FUNCTION__, $_action, $_data_log),
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
339
                        'msg' => array('redis_error', $e)
Open commit View diff
339 'msg' => array('redis_error', $e)
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
340
                      );
Open commit View diff
340 );
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
341
                      curl_close($curl);
Open commit View diff
341 curl_close($curl);
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
342
                      return false;
Open commit View diff
342 return false;
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
343
                    }
Open commit View diff
343 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
344
                }
Open commit View diff
344 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
345
              }
Open commit View diff
345 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
346
              curl_close($curl);
Open commit View diff
346 curl_close($curl);
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
347
            }
Open commit View diff
347 }
same change a89fe53

[Web] Show country of sasl ips

Full commit hash
a89fe53e4a0aa7712d6ad2beec1ce8b296f011dc
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
348
          }
Open commit View diff
348 }
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
349
        }
Open commit View diff
349 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
350
      }
Open commit View diff
350 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
351
      else {
Open commit View diff
351 else {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
352
        $sasl = array();
Open commit View diff
352 $sasl = array();
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
353
      }
Open commit View diff
353 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
354
      if ($_SESSION['mailcow_cc_role'] == "admin" || $username == $_SESSION['mailcow_cc_username']) {
Open commit View diff
354 if ($_SESSION['mailcow_cc_role'] == "admin" || $username == $_SESSION['mailcow_cc_username']) {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
355
        $stmt = $pdo->prepare('SELECT `remote`, `time` FROM `logs`
Open commit View diff
355 $stmt = $pdo->prepare('SELECT `remote`, `time` FROM `logs`
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
356
          WHERE JSON_EXTRACT(`call`, "$[0]") = "check_login"
Open commit View diff
356 WHERE JSON_EXTRACT(`call`, "$[0]") = "check_login"
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
357
            AND JSON_EXTRACT(`call`, "$[1]") = :username
Open commit View diff
357 AND JSON_EXTRACT(`call`, "$[1]") = :username
FreddleSpl0it about 4 years ago 8987ebc

[BS5] add whats new modal after update

Full commit hash
8987ebca36dfc0ed0bd13d324ae6251b654863a2
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
358
            AND `type` = "success" ORDER BY `time` DESC LIMIT 1 OFFSET :offset');
Open commit View diff
358 AND `type` = "success" ORDER BY `time` DESC LIMIT 1 OFFSET :offset');
same change 8987ebc

[BS5] add whats new modal after update

Full commit hash
8987ebca36dfc0ed0bd13d324ae6251b654863a2
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
359
        $stmt->execute(array(
Open commit View diff
359 $stmt->execute(array(
same change 8987ebc

[BS5] add whats new modal after update

Full commit hash
8987ebca36dfc0ed0bd13d324ae6251b654863a2
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
360
          ':username' => $username,
Open commit View diff
360 ':username' => $username,
same change 8987ebc

[BS5] add whats new modal after update

Full commit hash
8987ebca36dfc0ed0bd13d324ae6251b654863a2
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
361
          ':offset' => $ui_offset
Open commit View diff
361 ':offset' => $ui_offset
same change 8987ebc

[BS5] add whats new modal after update

Full commit hash
8987ebca36dfc0ed0bd13d324ae6251b654863a2
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
362
        ));
Open commit View diff
362 ));
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
363
        $ui = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
363 $ui = $stmt->fetch(PDO::FETCH_ASSOC);
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
364
      }
Open commit View diff
364 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
365
      else {
Open commit View diff
365 else {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
366
        $ui = array();
Open commit View diff
366 $ui = array();
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
367
      }
Open commit View diff
367 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
368
Open commit View diff
368
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
369
      return array('ui' => $ui, 'sasl' => $sasl);
Open commit View diff
369 return array('ui' => $ui, 'sasl' => $sasl);
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
370
    break;
Open commit View diff
370 break;
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
371
    case 'reset':
Open commit View diff
371 case 'reset':
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
372
      if (filter_var($username, FILTER_VALIDATE_EMAIL) && hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
Open commit View diff
372 if (filter_var($username, FILTER_VALIDATE_EMAIL) && hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
andryyy about 5 years ago 78084c5

[Web] Log only latest datetime of a unique datetime, service and ip combination

Full commit hash
78084c5e7b7b0282a895603604c929e41f313888
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
373
        $stmt = $pdo->prepare('DELETE FROM `sasl_log`
Open commit View diff
373 $stmt = $pdo->prepare('DELETE FROM `sasl_log`
andryyy about 5 years ago 8b08d09

[Web] Remove XMPP options

Full commit hash
8b08d09ca20402f06ca0c8a884cd58d4fc72fec0
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
374
          WHERE `username` = :username');
Open commit View diff
374 WHERE `username` = :username');
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
375
        $stmt->execute(array(':username' => $username));
Open commit View diff
375 $stmt->execute(array(':username' => $username));
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
376
      }
Open commit View diff
376 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
377
      if ($_SESSION['mailcow_cc_role'] == "admin" || $username == $_SESSION['mailcow_cc_username']) {
Open commit View diff
377 if ($_SESSION['mailcow_cc_role'] == "admin" || $username == $_SESSION['mailcow_cc_username']) {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
378
        $stmt = $pdo->prepare('DELETE FROM `logs`
Open commit View diff
378 $stmt = $pdo->prepare('DELETE FROM `logs`
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
379
          WHERE JSON_EXTRACT(`call`, "$[0]") = "check_login"
Open commit View diff
379 WHERE JSON_EXTRACT(`call`, "$[0]") = "check_login"
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
380
            AND JSON_EXTRACT(`call`, "$[1]") = :username
Open commit View diff
380 AND JSON_EXTRACT(`call`, "$[1]") = :username
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
381
            AND `type` = "success"');
Open commit View diff
381 AND `type` = "success"');
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
382
        $stmt->execute(array(':username' => $username));
Open commit View diff
382 $stmt->execute(array(':username' => $username));
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
383
      }
Open commit View diff
383 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
384
      return true;
Open commit View diff
384 return true;
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
385
    break;
Open commit View diff
385 break;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
386
  }
Open commit View diff
386 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
387
Open commit View diff
387
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
388
}
Open commit View diff
388 }
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
389
function set_sasl_log($username, $real_rip, $service){
Open commit View diff
389 function set_sasl_log($username, $real_rip, $service){
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
390
  global $pdo;
Open commit View diff
390 global $pdo;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
391
Open commit View diff
391
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
392
  try {
Open commit View diff
392 try {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
393
    if (!empty($_SESSION['app_passwd_id'])) {
Open commit View diff
393 if (!empty($_SESSION['app_passwd_id'])) {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
394
      $app_password = $_SESSION['app_passwd_id'];
Open commit View diff
394 $app_password = $_SESSION['app_passwd_id'];
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
395
    } else {
Open commit View diff
395 } else {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
396
      $app_password = 0;
Open commit View diff
396 $app_password = 0;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
397
    }
Open commit View diff
397 }
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
398
Open commit View diff
398
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
399
    $stmt = $pdo->prepare('REPLACE INTO `sasl_log` (`username`, `real_rip`, `service`, `app_password`) VALUES (:username, :real_rip, :service, :app_password)');
Open commit View diff
399 $stmt = $pdo->prepare('REPLACE INTO `sasl_log` (`username`, `real_rip`, `service`, `app_password`) VALUES (:username, :real_rip, :service, :app_password)');
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
400
    $stmt->execute(array(
Open commit View diff
400 $stmt->execute(array(
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
401
      ':username' => $username,
Open commit View diff
401 ':username' => $username,
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
402
      ':real_rip' => $real_rip,
Open commit View diff
402 ':real_rip' => $real_rip,
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
403
      ':service' => $service,
Open commit View diff
403 ':service' => $service,
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
404
      ':app_password' => $app_password
Open commit View diff
404 ':app_password' => $app_password
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
405
    ));
Open commit View diff
405 ));
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
406
  } catch (PDOException $e) {
Open commit View diff
406 } catch (PDOException $e) {
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
407
    $_SESSION['return'][] =  array(
Open commit View diff
407 $_SESSION['return'][] = array(
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
408
      'type' => 'danger',
Open commit View diff
408 'type' => 'danger',
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
409
      'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
409 'log' => array(__FUNCTION__, $_data_log),
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
410
      'msg' => array('mysql_error', $e)
Open commit View diff
410 'msg' => array('mysql_error', $e)
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
411
    );
Open commit View diff
411 );
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
412
    return false;
Open commit View diff
412 return false;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
413
  }
Open commit View diff
413 }
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
414
Open commit View diff
414
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
415
  return true;
Open commit View diff
415 return true;
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
416
}
Open commit View diff
416 }
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
417
function flush_memcached() {
Open commit View diff
417 function flush_memcached() {
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
418
  try {
Open commit View diff
418 try {
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
419
    $m = new Memcached();
Open commit View diff
419 $m = new Memcached();
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
420
    $m->addServer('memcached', 11211);
Open commit View diff
420 $m->addServer('memcached', 11211);
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
421
    $m->flush();
Open commit View diff
421 $m->flush();
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
422
  }
Open commit View diff
422 }
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
423
  catch ( Exception $e ) {
Open commit View diff
423 catch ( Exception $e ) {
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
424
    // Dunno
Open commit View diff
424 // Dunno
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
425
  }
Open commit View diff
425 }
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
426
}
Open commit View diff
426 }
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
427
function sys_mail($_data) {
Open commit View diff
427 function sys_mail($_data) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
428
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
428 if ($_SESSION['mailcow_cc_role'] != "admin") {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
429
    $_SESSION['return'][] =  array(
Open commit View diff
429 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
430
      'type' => 'danger',
Open commit View diff
430 'type' => 'danger',
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
431
      'log' => array(__FUNCTION__),
Open commit View diff
431 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
432
      'msg' => 'access_denied'
Open commit View diff
432 'msg' => 'access_denied'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
433
    );
Open commit View diff
433 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
434
    return false;
Open commit View diff
434 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
435
  }
Open commit View diff
435 }
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
436
  $excludes = $_data['mass_exclude'];
Open commit View diff
436 $excludes = $_data['mass_exclude'];
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
437
  $includes = $_data['mass_include'];
Open commit View diff
437 $includes = $_data['mass_include'];
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
438
  $mailboxes = array();
Open commit View diff
438 $mailboxes = array();
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
439
  $mass_from = $_data['mass_from'];
Open commit View diff
439 $mass_from = $_data['mass_from'];
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
440
  $mass_text = $_data['mass_text'];
Open commit View diff
440 $mass_text = $_data['mass_text'];
Balázs Dura-Kovács over 5 years ago dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
441
  $mass_html = $_data['mass_html'];
Open commit View diff
441 $mass_html = $_data['mass_html'];
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
442
  $mass_subject = $_data['mass_subject'];
Open commit View diff
442 $mass_subject = $_data['mass_subject'];
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
443
  if (!filter_var($mass_from, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
443 if (!filter_var($mass_from, FILTER_VALIDATE_EMAIL)) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
444
    $_SESSION['return'][] =  array(
Open commit View diff
444 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
445
      'type' => 'danger',
Open commit View diff
445 'type' => 'danger',
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
446
      'log' => array(__FUNCTION__),
Open commit View diff
446 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
447
      'msg' => 'from_invalid'
Open commit View diff
447 'msg' => 'from_invalid'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
448
    );
Open commit View diff
448 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
449
    return false;
Open commit View diff
449 return false;
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
450
  }
Open commit View diff
450 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
451
  if (empty($mass_subject)) {
Open commit View diff
451 if (empty($mass_subject)) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
452
    $_SESSION['return'][] =  array(
Open commit View diff
452 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
453
      'type' => 'danger',
Open commit View diff
453 'type' => 'danger',
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
454
      'log' => array(__FUNCTION__),
Open commit View diff
454 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
455
      'msg' => 'subject_empty'
Open commit View diff
455 'msg' => 'subject_empty'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
456
    );
Open commit View diff
456 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
457
    return false;
Open commit View diff
457 return false;
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
458
  }
Open commit View diff
458 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
459
  if (empty($mass_text)) {
Open commit View diff
459 if (empty($mass_text)) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
460
    $_SESSION['return'][] =  array(
Open commit View diff
460 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
461
      'type' => 'danger',
Open commit View diff
461 'type' => 'danger',
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
462
      'log' => array(__FUNCTION__),
Open commit View diff
462 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
463
      'msg' => 'text_empty'
Open commit View diff
463 'msg' => 'text_empty'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
464
    );
Open commit View diff
464 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
465
    return false;
Open commit View diff
465 return false;
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
466
  }
Open commit View diff
466 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
467
  $domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains'));
Open commit View diff
467 $domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains'));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
468
  foreach ($domains as $domain) {
Open commit View diff
468 foreach ($domains as $domain) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
469
    foreach (mailbox('get', 'mailboxes', $domain) as $mailbox) {
Open commit View diff
469 foreach (mailbox('get', 'mailboxes', $domain) as $mailbox) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
470
      $mailboxes[] = $mailbox;
Open commit View diff
470 $mailboxes[] = $mailbox;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
471
    }
Open commit View diff
471 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
472
  }
Open commit View diff
472 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
473
  if (!empty($includes)) {
Open commit View diff
473 if (!empty($includes)) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
474
    $rcpts = array_intersect($mailboxes, $includes);
Open commit View diff
474 $rcpts = array_intersect($mailboxes, $includes);
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
475
  }
Open commit View diff
475 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
476
  elseif (!empty($excludes)) {
Open commit View diff
476 elseif (!empty($excludes)) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
477
    $rcpts = array_diff($mailboxes, $excludes);
Open commit View diff
477 $rcpts = array_diff($mailboxes, $excludes);
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
478
  }
Open commit View diff
478 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
479
  else {
Open commit View diff
479 else {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
480
    $rcpts = $mailboxes;
Open commit View diff
480 $rcpts = $mailboxes;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
481
  }
Open commit View diff
481 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
482
  if (!empty($rcpts)) {
Open commit View diff
482 if (!empty($rcpts)) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
483
    ini_set('max_execution_time', 0);
Open commit View diff
483 ini_set('max_execution_time', 0);
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
484
    ini_set('max_input_time', 0);
Open commit View diff
484 ini_set('max_input_time', 0);
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
485
    $mail = new PHPMailer;
Open commit View diff
485 $mail = new PHPMailer;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
486
    $mail->Timeout = 10;
Open commit View diff
486 $mail->Timeout = 10;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
487
    $mail->SMTPOptions = array(
Open commit View diff
487 $mail->SMTPOptions = array(
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
488
      'ssl' => array(
Open commit View diff
488 'ssl' => array(
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
489
        'verify_peer' => false,
Open commit View diff
489 'verify_peer' => false,
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
490
        'verify_peer_name' => false,
Open commit View diff
490 'verify_peer_name' => false,
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
491
        'allow_self_signed' => true
Open commit View diff
491 'allow_self_signed' => true
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
492
      )
Open commit View diff
492 )
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
493
    );
Open commit View diff
493 );
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
494
    $mail->isSMTP();
Open commit View diff
494 $mail->isSMTP();
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
495
    $mail->Host = 'dovecot-mailcow';
Open commit View diff
495 $mail->Host = 'dovecot-mailcow';
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
496
    $mail->SMTPAuth = false;
Open commit View diff
496 $mail->SMTPAuth = false;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
497
    $mail->Port = 24;
Open commit View diff
497 $mail->Port = 24;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
498
    $mail->setFrom($mass_from);
Open commit View diff
498 $mail->setFrom($mass_from);
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
499
    $mail->Subject = $mass_subject;
Open commit View diff
499 $mail->Subject = $mass_subject;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
500
    $mail->CharSet ="UTF-8";
Open commit View diff
500 $mail->CharSet ="UTF-8";
Balázs Dura-Kovács over 5 years ago dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
501
    if (!empty($mass_html)) {
Open commit View diff
501 if (!empty($mass_html)) {
same change dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
502
      $mail->Body = $mass_html;
Open commit View diff
502 $mail->Body = $mass_html;
same change dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
503
      $mail->AltBody = $mass_text;
Open commit View diff
503 $mail->AltBody = $mass_text;
same change dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
504
    }
Open commit View diff
504 }
same change dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
505
    else {
Open commit View diff
505 else {
same change dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
506
      $mail->Body = $mass_text;
Open commit View diff
506 $mail->Body = $mass_text;
same change dd1b25f

[Web] Optional HTML in system mails (#3879)

Full commit hash
dd1b25fa61b0995cdf163099bc8c6055b003d0cb
Author
Balázs Dura-Kovács <[email protected]>
Date
over 5 years ago
Selected line
507
    }
Open commit View diff
507 }
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
508
    $mail->XMailer = 'MooMassMail';
Open commit View diff
508 $mail->XMailer = 'MooMassMail';
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
509
    foreach ($rcpts as $rcpt) {
Open commit View diff
509 foreach ($rcpts as $rcpt) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
510
      $mail->AddAddress($rcpt);
Open commit View diff
510 $mail->AddAddress($rcpt);
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
511
      if (!$mail->send()) {
Open commit View diff
511 if (!$mail->send()) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
512
        $_SESSION['return'][] =  array(
Open commit View diff
512 $_SESSION['return'][] = array(
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
513
          'type' => 'warning',
Open commit View diff
513 'type' => 'warning',
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
514
          'log' => array(__FUNCTION__),
Open commit View diff
514 'log' => array(__FUNCTION__),
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
515
          'msg' => 'Mailer error (RCPT "' . htmlspecialchars($rcpt) . '"): ' . str_replace('https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting', '', $mail->ErrorInfo)
Open commit View diff
515 'msg' => 'Mailer error (RCPT "' . htmlspecialchars($rcpt) . '"): ' . str_replace('https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting', '', $mail->ErrorInfo)
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
516
        );
Open commit View diff
516 );
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
517
      }
Open commit View diff
517 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
518
      $mail->ClearAllRecipients();
Open commit View diff
518 $mail->ClearAllRecipients();
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
519
    }
Open commit View diff
519 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
520
  }
Open commit View diff
520 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
521
  $_SESSION['return'][] =  array(
Open commit View diff
521 $_SESSION['return'][] = array(
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
522
    'type' => 'success',
Open commit View diff
522 'type' => 'success',
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
523
    'log' => array(__FUNCTION__),
Open commit View diff
523 'log' => array(__FUNCTION__),
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
524
    'msg' => 'Mass mail job completed, sent ' . count($rcpts) . ' mails'
Open commit View diff
524 'msg' => 'Mass mail job completed, sent ' . count($rcpts) . ' mails'
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
525
  );
Open commit View diff
525 );
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
526
}
Open commit View diff
526 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
527
function logger($_data = false) {
Open commit View diff
527 function logger($_data = false) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
528
  /*
Open commit View diff
528 /*
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
529
  logger() will be called as last function
Open commit View diff
529 logger() will be called as last function
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
530
  To manually log a message, logger needs to be called like below.
Open commit View diff
530 To manually log a message, logger needs to be called like below.
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
531
Open commit View diff
531
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
532
  logger(array(
Open commit View diff
532 logger(array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
533
    'return' => array(
Open commit View diff
533 'return' => array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
534
      array(
Open commit View diff
534 array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
535
        'type' => 'danger',
Open commit View diff
535 'type' => 'danger',
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
536
        'log' => array(__FUNCTION__),
Open commit View diff
536 'log' => array(__FUNCTION__),
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
537
        'msg' => $err
Open commit View diff
537 'msg' => $err
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
538
      )
Open commit View diff
538 )
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
539
    )
Open commit View diff
539 )
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
540
  ));
Open commit View diff
540 ));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
541
Open commit View diff
541
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
542
  These messages will not be printed as alert box.
Open commit View diff
542 These messages will not be printed as alert box.
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
543
  To do so, push them to $_SESSION['return'] and do not call logger as they will be included automatically:
Open commit View diff
543 To do so, push them to $_SESSION['return'] and do not call logger as they will be included automatically:
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
544
Open commit View diff
544
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
545
  $_SESSION['return'][] =  array(
Open commit View diff
545 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
546
    'type' => 'danger',
Open commit View diff
546 'type' => 'danger',
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
547
    'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
547 'log' => array(__FUNCTION__, $user, '*'),
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
548
    'msg' => $err
Open commit View diff
548 'msg' => $err
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
549
  );
Open commit View diff
549 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
550
  */
Open commit View diff
550 */
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
551
  global $pdo;
Open commit View diff
551 global $pdo;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
552
  if (!$_data) {
Open commit View diff
552 if (!$_data) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
553
    $_data = $_SESSION;
Open commit View diff
553 $_data = $_SESSION;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
554
  }
Open commit View diff
554 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
555
  if (!empty($_data['return'])) {
Open commit View diff
555 if (!empty($_data['return'])) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
556
    $task = substr(strtoupper(md5(uniqid(rand(), true))), 0, 6);
Open commit View diff
556 $task = substr(strtoupper(md5(uniqid(rand(), true))), 0, 6);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
557
    foreach ($_data['return'] as $return) {
Open commit View diff
557 foreach ($_data['return'] as $return) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
558
      $type = $return['type'];
Open commit View diff
558 $type = $return['type'];
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
559
      $msg = null;
Open commit View diff
559 $msg = null;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
560
      if (isset($return['msg'])) {
Open commit View diff
560 if (isset($return['msg'])) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
561
        $msg = json_encode($return['msg'], JSON_UNESCAPED_UNICODE);
Open commit View diff
561 $msg = json_encode($return['msg'], JSON_UNESCAPED_UNICODE);
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
562
      }
Open commit View diff
562 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
563
      $call = null;
Open commit View diff
563 $call = null;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
564
      if (isset($return['log'])) {
Open commit View diff
564 if (isset($return['log'])) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
565
        $call = json_encode($return['log'], JSON_UNESCAPED_UNICODE);
Open commit View diff
565 $call = json_encode($return['log'], JSON_UNESCAPED_UNICODE);
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
566
      }
Open commit View diff
566 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
567
      if (!empty($_SESSION["dual-login"]["username"])) {
Open commit View diff
567 if (!empty($_SESSION["dual-login"]["username"])) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
568
        $user = $_SESSION["dual-login"]["username"] . ' => ' . $_SESSION['mailcow_cc_username'];
Open commit View diff
568 $user = $_SESSION["dual-login"]["username"] . ' => ' . $_SESSION['mailcow_cc_username'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
569
        $role = $_SESSION["dual-login"]["role"] . ' => ' . $_SESSION['mailcow_cc_role'];
Open commit View diff
569 $role = $_SESSION["dual-login"]["role"] . ' => ' . $_SESSION['mailcow_cc_role'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
570
      }
Open commit View diff
570 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
571
      elseif (!empty($_SESSION['mailcow_cc_username'])) {
Open commit View diff
571 elseif (!empty($_SESSION['mailcow_cc_username'])) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
572
        $user = $_SESSION['mailcow_cc_username'];
Open commit View diff
572 $user = $_SESSION['mailcow_cc_username'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
573
        $role = $_SESSION['mailcow_cc_role'];
Open commit View diff
573 $role = $_SESSION['mailcow_cc_role'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
574
      }
Open commit View diff
574 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
575
      else {
Open commit View diff
575 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
576
        $user = 'unauthenticated';
Open commit View diff
576 $user = 'unauthenticated';
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
577
        $role = 'unauthenticated';
Open commit View diff
577 $role = 'unauthenticated';
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
578
      }
Open commit View diff
578 }
André almost 8 years ago a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
579
      // We cannot log when logs is missing...
Open commit View diff
579 // We cannot log when logs is missing...
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
580
      try {
Open commit View diff
580 try {
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
581
        $stmt = $pdo->prepare("INSERT INTO `logs` (`type`, `task`, `msg`, `call`, `user`, `role`, `remote`, `time`) VALUES
Open commit View diff
581 $stmt = $pdo->prepare("INSERT INTO `logs` (`type`, `task`, `msg`, `call`, `user`, `role`, `remote`, `time`) VALUES
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
582
          (:type, :task, :msg, :call, :user, :role, :remote, UNIX_TIMESTAMP())");
Open commit View diff
582 (:type, :task, :msg, :call, :user, :role, :remote, UNIX_TIMESTAMP())");
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
583
        $stmt->execute(array(
Open commit View diff
583 $stmt->execute(array(
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
584
          ':type' => $type,
Open commit View diff
584 ':type' => $type,
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
585
          ':task' => $task,
Open commit View diff
585 ':task' => $task,
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
586
          ':call' => $call,
Open commit View diff
586 ':call' => $call,
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
587
          ':msg' => $msg,
Open commit View diff
587 ':msg' => $msg,
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
588
          ':user' => $user,
Open commit View diff
588 ':user' => $user,
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
589
          ':role' => $role,
Open commit View diff
589 ':role' => $role,
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
590
          ':remote' => get_remote_ip()
Open commit View diff
590 ':remote' => get_remote_ip()
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
591
        ));
Open commit View diff
591 ));
same change a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
592
      }
Open commit View diff
592 }
goodygh about 3 years ago 9752313

logger pdo exception handling workaround

Full commit hash
9752313d24260d25c5f4d2f32d317278d1add964
Author
goodygh <[email protected]>
Date
about 3 years ago
Selected line
593
      catch (PDOException $e) {
Open commit View diff
593 catch (PDOException $e) {
same change 9752313

logger pdo exception handling workaround

Full commit hash
9752313d24260d25c5f4d2f32d317278d1add964
Author
goodygh <[email protected]>
Date
about 3 years ago
Selected line
594
        # handle the exception here, as the exception handler function results in a white page
Open commit View diff
594 # handle the exception here, as the exception handler function results in a white page
same change 9752313

logger pdo exception handling workaround

Full commit hash
9752313d24260d25c5f4d2f32d317278d1add964
Author
goodygh <[email protected]>
Date
about 3 years ago
Selected line
595
        error_log($e->getMessage(), 0);
Open commit View diff
595 error_log($e->getMessage(), 0);
André almost 8 years ago a5488d4

[Web] Fix init db on fresh installations

Full commit hash
a5488d4ba6526dad5ec2751f19e1ab9504b51bf9
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
596
      }
Open commit View diff
596 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
597
    }
Open commit View diff
597 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
598
  }
Open commit View diff
598 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
599
  else {
Open commit View diff
599 else {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
600
    return true;
Open commit View diff
600 return true;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
601
  }
Open commit View diff
601 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
602
}
Open commit View diff
602 }
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
603
function hasDomainAccess($username, $role, $domain) {
Open commit View diff
603 function hasDomainAccess($username, $role, $domain) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
604
  global $pdo;
Open commit View diff
604 global $pdo;
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
605
  if (empty($domain) || !is_valid_domain_name($domain)) {
Open commit View diff
605 if (empty($domain) || !is_valid_domain_name($domain)) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
606
    return false;
Open commit View diff
606 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
607
  }
Open commit View diff
607 }
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
608
  if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
Open commit View diff
608 if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
609
    return true;
Open commit View diff
609 return true;
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
610
  }
Open commit View diff
610 }
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
611
  if (!filter_var($username, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $username))) {
Open commit View diff
611 if (!filter_var($username, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $username))) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
612
    return false;
Open commit View diff
612 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
613
  }
Open commit View diff
613 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
614
  if ($role != 'admin' && $role != 'domainadmin') {
Open commit View diff
614 if ($role != 'admin' && $role != 'domainadmin') {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
615
    return false;
Open commit View diff
615 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
616
  }
Open commit View diff
616 }
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
617
  if ($role == 'admin') {
Open commit View diff
617 if ($role == 'admin') {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
618
    $stmt = $pdo->prepare("SELECT `domain` FROM `domain`
Open commit View diff
618 $stmt = $pdo->prepare("SELECT `domain` FROM `domain`
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
619
      WHERE `domain` = :domain");
Open commit View diff
619 WHERE `domain` = :domain");
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
620
    $stmt->execute(array(':domain' => $domain));
Open commit View diff
620 $stmt->execute(array(':domain' => $domain));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
621
    $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
Open commit View diff
621 $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
622
    $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain`
Open commit View diff
622 $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain`
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
623
      WHERE `alias_domain` = :domain");
Open commit View diff
623 WHERE `alias_domain` = :domain");
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
624
    $stmt->execute(array(':domain' => $domain));
Open commit View diff
624 $stmt->execute(array(':domain' => $domain));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
625
    $num_results = $num_results + count($stmt->fetchAll(PDO::FETCH_ASSOC));
Open commit View diff
625 $num_results = $num_results + count($stmt->fetchAll(PDO::FETCH_ASSOC));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
626
    if ($num_results != 0) {
Open commit View diff
626 if ($num_results != 0) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
627
      return true;
Open commit View diff
627 return true;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
628
    }
Open commit View diff
628 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
629
  }
Open commit View diff
629 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
630
  elseif ($role == 'domainadmin') {
Open commit View diff
630 elseif ($role == 'domainadmin') {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
631
    $stmt = $pdo->prepare("SELECT `domain` FROM `domain_admins`
Open commit View diff
631 $stmt = $pdo->prepare("SELECT `domain` FROM `domain_admins`
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
632
    WHERE (
Open commit View diff
632 WHERE (
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
633
      `active`='1'
Open commit View diff
633 `active`='1'
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
634
      AND `username` = :username
Open commit View diff
634 AND `username` = :username
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
635
      AND (`domain` = :domain1 OR `domain` = (SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :domain2))
Open commit View diff
635 AND (`domain` = :domain1 OR `domain` = (SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain` = :domain2))
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
636
    )");
Open commit View diff
636 )");
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
637
    $stmt->execute(array(':username' => $username, ':domain1' => $domain, ':domain2' => $domain));
Open commit View diff
637 $stmt->execute(array(':username' => $username, ':domain1' => $domain, ':domain2' => $domain));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
638
    $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
Open commit View diff
638 $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
639
    if (!empty($num_results)) {
Open commit View diff
639 if (!empty($num_results)) {
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
640
      return true;
Open commit View diff
640 return true;
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
641
    }
Open commit View diff
641 }
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
642
  }
Open commit View diff
642 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
643
  return false;
Open commit View diff
643 return false;
andryyy over 9 years ago 365abdd

Cleanup, cleanup and cleanup, much better sender acl handling, imapsync jobs, login as mailbox user X

Full commit hash
365abdda018af236829dfb08db2b68fc32ebaa14
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
644
}
Open commit View diff
644 }
same change 365abdd

Cleanup, cleanup and cleanup, much better sender acl handling, imapsync jobs, login as mailbox user X

Full commit hash
365abdda018af236829dfb08db2b68fc32ebaa14
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
645
function hasMailboxObjectAccess($username, $role, $object) {
Open commit View diff
645 function hasMailboxObjectAccess($username, $role, $object) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
646
  global $pdo;
Open commit View diff
646 global $pdo;
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
647
  if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
Open commit View diff
647 if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
648
    return true;
Open commit View diff
648 return true;
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
649
  }
Open commit View diff
649 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
650
  if (empty($username) || empty($role) || empty($object)) {
Open commit View diff
650 if (empty($username) || empty($role) || empty($object)) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
651
    return false;
Open commit View diff
651 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
652
  }
Open commit View diff
652 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
653
  if (!filter_var(html_entity_decode(rawurldecode($username)), FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $username))) {
Open commit View diff
653 if (!filter_var(html_entity_decode(rawurldecode($username)), FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $username))) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
654
    return false;
Open commit View diff
654 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
655
  }
Open commit View diff
655 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
656
  if ($role != 'admin' && $role != 'domainadmin' && $role != 'user') {
Open commit View diff
656 if ($role != 'admin' && $role != 'domainadmin' && $role != 'user') {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
657
    return false;
Open commit View diff
657 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
658
  }
Open commit View diff
658 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
659
  if ($username == $object) {
Open commit View diff
659 if ($username == $object) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
660
    return true;
Open commit View diff
660 return true;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
661
  }
Open commit View diff
661 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
662
  $stmt = $pdo->prepare("SELECT `domain` FROM `mailbox` WHERE `username` = :object");
Open commit View diff
662 $stmt = $pdo->prepare("SELECT `domain` FROM `mailbox` WHERE `username` = :object");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
663
  $stmt->execute(array(':object' => $object));
Open commit View diff
663 $stmt->execute(array(':object' => $object));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
664
  $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
664 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
665
  if (isset($row['domain']) && hasDomainAccess($username, $role, $row['domain'])) {
Open commit View diff
665 if (isset($row['domain']) && hasDomainAccess($username, $role, $row['domain'])) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
666
    return true;
Open commit View diff
666 return true;
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
667
  }
Open commit View diff
667 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
668
  return false;
Open commit View diff
668 return false;
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
669
}
Open commit View diff
669 }
andryyy about 5 years ago 05c85b4

[Web] Fix alias verification

Full commit hash
05c85b4140ea0c83ea5b028ead3a614813f99736
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
670
// does also verify mailboxes as a mailbox is a alias == goto
Open commit View diff
670 // does also verify mailboxes as a mailbox is a alias == goto
andryyy about 7 years ago 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
671
function hasAliasObjectAccess($username, $role, $object) {
Open commit View diff
671 function hasAliasObjectAccess($username, $role, $object) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
672
  global $pdo;
Open commit View diff
672 global $pdo;
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
673
  if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
Open commit View diff
673 if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
674
    return true;
Open commit View diff
674 return true;
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
675
  }
Open commit View diff
675 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
676
  if (empty($username) || empty($role) || empty($object)) {
Open commit View diff
676 if (empty($username) || empty($role) || empty($object)) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
677
    return false;
Open commit View diff
677 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
678
  }
Open commit View diff
678 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
679
  if (!filter_var(html_entity_decode(rawurldecode($username)), FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $username))) {
Open commit View diff
679 if (!filter_var(html_entity_decode(rawurldecode($username)), FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $username))) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
680
    return false;
Open commit View diff
680 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
681
  }
Open commit View diff
681 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
682
  if ($role != 'admin' && $role != 'domainadmin' && $role != 'user') {
Open commit View diff
682 if ($role != 'admin' && $role != 'domainadmin' && $role != 'user') {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
683
    return false;
Open commit View diff
683 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
684
  }
Open commit View diff
684 }
andryyy about 5 years ago 05c85b4

[Web] Fix alias verification

Full commit hash
05c85b4140ea0c83ea5b028ead3a614813f99736
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
685
  $stmt = $pdo->prepare("SELECT `domain` FROM `alias` WHERE `address` = :object");
Open commit View diff
685 $stmt = $pdo->prepare("SELECT `domain` FROM `alias` WHERE `address` = :object");
andryyy about 7 years ago 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
686
  $stmt->execute(array(':object' => $object));
Open commit View diff
686 $stmt->execute(array(':object' => $object));
same change 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
687
  $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
687 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
688
  if (isset($row['domain']) && hasDomainAccess($username, $role, $row['domain'])) {
Open commit View diff
688 if (isset($row['domain']) && hasDomainAccess($username, $role, $row['domain'])) {
same change 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
689
    return true;
Open commit View diff
689 return true;
same change 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
690
  }
Open commit View diff
690 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
691
  return false;
Open commit View diff
691 return false;
andryyy about 7 years ago 5087d5c

[Web] Allow aliases as send-as

Full commit hash
5087d5ce96a7403792ab4f1bf669522bc04e2240
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
692
}
Open commit View diff
692 }
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
693
function hasACLAccess($type) {
Open commit View diff
693 function hasACLAccess($type) {
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
694
  if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
Open commit View diff
694 if (isset($_SESSION['access_all_exception']) && $_SESSION['access_all_exception'] == "1") {
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
695
    return true;
Open commit View diff
695 return true;
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
696
  }
Open commit View diff
696 }
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
697
  if (isset($_SESSION['acl'][$type]) && $_SESSION['acl'][$type] == "1") {
Open commit View diff
697 if (isset($_SESSION['acl'][$type]) && $_SESSION['acl'][$type] == "1") {
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
698
    return true;
Open commit View diff
698 return true;
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
699
  }
Open commit View diff
699 }
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
700
Open commit View diff
700
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
701
  return false;
Open commit View diff
701 return false;
same change 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
702
}
Open commit View diff
702 }
Michael Kuron about 9 years ago 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
703
function pem_to_der($pem_key) {
Open commit View diff
703 function pem_to_der($pem_key) {
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
704
  // Need to remove BEGIN/END PUBLIC KEY
Open commit View diff
704 // Need to remove BEGIN/END PUBLIC KEY
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
705
  $lines = explode("\n", trim($pem_key));
Open commit View diff
705 $lines = explode("\n", trim($pem_key));
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
706
  unset($lines[count($lines)-1]);
Open commit View diff
706 unset($lines[count($lines)-1]);
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
707
  unset($lines[0]);
Open commit View diff
707 unset($lines[0]);
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
708
  return base64_decode(implode('', $lines));
Open commit View diff
708 return base64_decode(implode('', $lines));
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
709
}
Open commit View diff
709 }
andryyy about 6 years ago a6af7cb

[Web] Expand IPv6 addresses for better comparison

Full commit hash
a6af7cbc2ea6933bc4dc8a76afd2d207b64b80f0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
710
function expand_ipv6($ip) {
Open commit View diff
710 function expand_ipv6($ip) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
711
  $hex = unpack("H*hex", inet_pton($ip));
Open commit View diff
711 $hex = unpack("H*hex", inet_pton($ip));
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
712
  $ip = substr(preg_replace("/([A-f0-9]{4})/", "$1:", $hex['hex']), 0, -1);
Open commit View diff
712 $ip = substr(preg_replace("/([A-f0-9]{4})/", "$1:", $hex['hex']), 0, -1);
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
713
  return $ip;
Open commit View diff
713 return $ip;
andryyy about 6 years ago a6af7cb

[Web] Expand IPv6 addresses for better comparison

Full commit hash
a6af7cbc2ea6933bc4dc8a76afd2d207b64b80f0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
714
}
Open commit View diff
714 }
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
715
function generate_tlsa_digest($hostname, $port, $starttls = null) {
Open commit View diff
715 function generate_tlsa_digest($hostname, $port, $starttls = null) {
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
716
  if (!is_valid_domain_name($hostname)) {
Open commit View diff
716 if (!is_valid_domain_name($hostname)) {
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
717
    return "Not a valid hostname";
Open commit View diff
717 return "Not a valid hostname";
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
718
  }
Open commit View diff
718 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
719
  if (empty($starttls)) {
Open commit View diff
719 if (empty($starttls)) {
andre.peters over 8 years ago 3feabe0

[Web] Fixes TLSA for self-signed certs, closes #997

Full commit hash
3feabe00a287c56ab73e206bb16f27a0371c86d3
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
720
    $context = stream_context_create(array("ssl" => array("capture_peer_cert" => true, 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true)));
Open commit View diff
720 $context = stream_context_create(array("ssl" => array("capture_peer_cert" => true, 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true)));
andre.peters over 8 years ago d76d103

[Web] Move DNS diagnostic to modal, some minor fixes

Full commit hash
d76d103c76f5c4f97e004b740ec8c6c99d44638a
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
721
    $stream = stream_socket_client('ssl://' . $hostname . ':' . $port, $error_nr, $error_msg, 5, STREAM_CLIENT_CONNECT, $context);
Open commit View diff
721 $stream = stream_socket_client('ssl://' . $hostname . ':' . $port, $error_nr, $error_msg, 5, STREAM_CLIENT_CONNECT, $context);
same change d76d103

[Web] Move DNS diagnostic to modal, some minor fixes

Full commit hash
d76d103c76f5c4f97e004b740ec8c6c99d44638a
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
722
    if (!$stream) {
Open commit View diff
722 if (!$stream) {
same change d76d103

[Web] Move DNS diagnostic to modal, some minor fixes

Full commit hash
d76d103c76f5c4f97e004b740ec8c6c99d44638a
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
723
      $error_msg = isset($error_msg) ? $error_msg : '-';
Open commit View diff
723 $error_msg = isset($error_msg) ? $error_msg : '-';
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
724
      return $error_nr . ': ' . $error_msg;
Open commit View diff
724 return $error_nr . ': ' . $error_msg;
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
725
    }
Open commit View diff
725 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
726
  }
Open commit View diff
726 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
727
  else {
Open commit View diff
727 else {
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
728
    $stream = stream_socket_client('tcp://' . $hostname . ':' . $port, $error_nr, $error_msg, 5);
Open commit View diff
728 $stream = stream_socket_client('tcp://' . $hostname . ':' . $port, $error_nr, $error_msg, 5);
andre.peters over 8 years ago d76d103

[Web] Move DNS diagnostic to modal, some minor fixes

Full commit hash
d76d103c76f5c4f97e004b740ec8c6c99d44638a
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
729
    if (!$stream) {
Open commit View diff
729 if (!$stream) {
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
730
      return $error_nr . ': ' . $error_msg;
Open commit View diff
730 return $error_nr . ': ' . $error_msg;
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
731
    }
Open commit View diff
731 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
732
    $banner = fread($stream, 512 );
Open commit View diff
732 $banner = fread($stream, 512 );
Michael Kuron about 9 years ago 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
733
    if (preg_match("/^220/i", $banner)) { // SMTP
Open commit View diff
733 if (preg_match("/^220/i", $banner)) { // SMTP
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
734
      fwrite($stream,"HELO tlsa.generator.local\r\n");
Open commit View diff
734 fwrite($stream,"HELO tlsa.generator.local\r\n");
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
735
      fread($stream, 512);
Open commit View diff
735 fread($stream, 512);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
736
      fwrite($stream,"STARTTLS\r\n");
Open commit View diff
736 fwrite($stream,"STARTTLS\r\n");
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
737
      fread($stream, 512);
Open commit View diff
737 fread($stream, 512);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
738
    }
Open commit View diff
738 }
Michael Kuron about 9 years ago 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
739
    elseif (preg_match("/imap.+starttls/i", $banner)) { // IMAP
Open commit View diff
739 elseif (preg_match("/imap.+starttls/i", $banner)) { // IMAP
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
740
      fwrite($stream,"A1 STARTTLS\r\n");
Open commit View diff
740 fwrite($stream,"A1 STARTTLS\r\n");
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
741
      fread($stream, 512);
Open commit View diff
741 fread($stream, 512);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
742
    }
Open commit View diff
742 }
Michael Kuron about 9 years ago 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
743
    elseif (preg_match("/^\+OK/", $banner)) { // POP3
Open commit View diff
743 elseif (preg_match("/^\+OK/", $banner)) { // POP3
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
744
      fwrite($stream,"STLS\r\n");
Open commit View diff
744 fwrite($stream,"STLS\r\n");
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
745
      fread($stream, 512);
Open commit View diff
745 fread($stream, 512);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
746
    }
Open commit View diff
746 }
Michael Kuron about 9 years ago 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
747
    elseif (preg_match("/^OK/m", $banner)) { // Sieve
Open commit View diff
747 elseif (preg_match("/^OK/m", $banner)) { // Sieve
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
748
      fwrite($stream,"STARTTLS\r\n");
Open commit View diff
748 fwrite($stream,"STARTTLS\r\n");
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
749
      fread($stream, 512);
Open commit View diff
749 fread($stream, 512);
same change 5abeb31

Autoconfig harmonization

Full commit hash
5abeb313bad795f9005367416f4edacff05a078a
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
750
    }
Open commit View diff
750 }
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
751
    else {
Open commit View diff
751 else {
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
752
      return 'Unknown banner: "' . htmlspecialchars(trim($banner)) . '"';
Open commit View diff
752 return 'Unknown banner: "' . htmlspecialchars(trim($banner)) . '"';
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
753
    }
Open commit View diff
753 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
754
    // Upgrade connection
Open commit View diff
754 // Upgrade connection
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
755
    stream_set_blocking($stream, true);
Open commit View diff
755 stream_set_blocking($stream, true);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
756
    stream_context_set_option($stream, 'ssl', 'capture_peer_cert', true);
Open commit View diff
756 stream_context_set_option($stream, 'ssl', 'capture_peer_cert', true);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
757
    stream_context_set_option($stream, 'ssl', 'verify_peer', false);
Open commit View diff
757 stream_context_set_option($stream, 'ssl', 'verify_peer', false);
andre.peters over 8 years ago 3feabe0

[Web] Fixes TLSA for self-signed certs, closes #997

Full commit hash
3feabe00a287c56ab73e206bb16f27a0371c86d3
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
758
    stream_context_set_option($stream, 'ssl', 'verify_peer_name', false);
Open commit View diff
758 stream_context_set_option($stream, 'ssl', 'verify_peer_name', false);
andryyy about 9 years ago 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
759
    stream_context_set_option($stream, 'ssl', 'allow_self_signed', true);
Open commit View diff
759 stream_context_set_option($stream, 'ssl', 'allow_self_signed', true);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
760
    stream_socket_enable_crypto($stream, true, STREAM_CRYPTO_METHOD_ANY_CLIENT);
Open commit View diff
760 stream_socket_enable_crypto($stream, true, STREAM_CRYPTO_METHOD_ANY_CLIENT);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
761
    stream_set_blocking($stream, false);
Open commit View diff
761 stream_set_blocking($stream, false);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
762
  }
Open commit View diff
762 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
763
  $params = stream_context_get_params($stream);
Open commit View diff
763 $params = stream_context_get_params($stream);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
764
  if (!empty($params['options']['ssl']['peer_certificate'])) {
Open commit View diff
764 if (!empty($params['options']['ssl']['peer_certificate'])) {
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
765
    $key_resource = openssl_pkey_get_public($params['options']['ssl']['peer_certificate']);
Open commit View diff
765 $key_resource = openssl_pkey_get_public($params['options']['ssl']['peer_certificate']);
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
766
    // We cannot get ['rsa']['n'], the binary data would contain BEGIN/END PUBLIC KEY
Open commit View diff
766 // We cannot get ['rsa']['n'], the binary data would contain BEGIN/END PUBLIC KEY
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
767
    $key_data = openssl_pkey_get_details($key_resource)['key'];
Open commit View diff
767 $key_data = openssl_pkey_get_details($key_resource)['key'];
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
768
    return '3 1 1 ' . openssl_digest(pem_to_der($key_data), 'sha256');
Open commit View diff
768 return '3 1 1 ' . openssl_digest(pem_to_der($key_data), 'sha256');
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
769
  }
Open commit View diff
769 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
770
  else {
Open commit View diff
770 else {
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
771
    return 'Error: Cannot read peer certificate';
Open commit View diff
771 return 'Error: Cannot read peer certificate';
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
772
  }
Open commit View diff
772 }
same change 112e056

Add function to generate 3 1 1 TLSA digest

Full commit hash
112e056fda84dc76ada44f100df4c5d1f524e865
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
773
}
Open commit View diff
773 }
andryyy over 5 years ago 04bd216

[Web] Minor fixes

Full commit hash
04bd21663cc07d45a38f956ceb5ef5a3ae60f66f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
774
function alertbox_log_parser($_data) {
Open commit View diff
774 function alertbox_log_parser($_data) {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
775
  global $lang;
Open commit View diff
775 global $lang;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
776
  if (isset($_data['return'])) {
Open commit View diff
776 if (isset($_data['return'])) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
777
    foreach ($_data['return'] as $return) {
Open commit View diff
777 foreach ($_data['return'] as $return) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
778
      // Get type
Open commit View diff
778 // Get type
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
779
      $type = $return['type'];
Open commit View diff
779 $type = $return['type'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
780
      // If a lang[type][msg] string exists, use it as message
Open commit View diff
780 // If a lang[type][msg] string exists, use it as message
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
781
      if (isset($return['type']) && isset($return['msg']) && !is_array($return['msg'])) {
Open commit View diff
781 if (isset($return['type']) && isset($return['msg']) && !is_array($return['msg'])) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
782
        if (isset($lang[$return['type']][$return['msg']])) {
Open commit View diff
782 if (isset($lang[$return['type']][$return['msg']])) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
783
          $msg = $lang[$return['type']][$return['msg']];
Open commit View diff
783 $msg = $lang[$return['type']][$return['msg']];
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
784
        }
Open commit View diff
784 }
andryyy almost 5 years ago d6eb21f

[Web] Fix some empty responses in alert box

Full commit hash
d6eb21f7a625cc296ad6f1052a07efe9a4b05d72
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
785
        else {
Open commit View diff
785 else {
same change d6eb21f

[Web] Fix some empty responses in alert box

Full commit hash
d6eb21f7a625cc296ad6f1052a07efe9a4b05d72
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
786
          $msg = $return['msg'];
Open commit View diff
786 $msg = $return['msg'];
same change d6eb21f

[Web] Fix some empty responses in alert box

Full commit hash
d6eb21f7a625cc296ad6f1052a07efe9a4b05d72
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
787
        }
Open commit View diff
787 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
788
      }
Open commit View diff
788 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
789
      // If msg is an array, use first element as language string and run printf on it with remaining array elements
Open commit View diff
789 // If msg is an array, use first element as language string and run printf on it with remaining array elements
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
790
      elseif (is_array($return['msg'])) {
Open commit View diff
790 elseif (is_array($return['msg'])) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
791
        $msg = array_shift($return['msg']);
Open commit View diff
791 $msg = array_shift($return['msg']);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
792
        $msg = vsprintf(
Open commit View diff
792 $msg = vsprintf(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
793
          $lang[$return['type']][$msg],
Open commit View diff
793 $lang[$return['type']][$msg],
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
794
          $return['msg']
Open commit View diff
794 $return['msg']
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
795
        );
Open commit View diff
795 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
796
      }
Open commit View diff
796 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
797
      else {
Open commit View diff
797 else {
andryyy almost 5 years ago d6eb21f

[Web] Fix some empty responses in alert box

Full commit hash
d6eb21f7a625cc296ad6f1052a07efe9a4b05d72
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
798
        $msg = '-';
Open commit View diff
798 $msg = '-';
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
799
      }
Open commit View diff
799 }
andryyy about 6 years ago ccc56c5

[Web] Merge same notification types

Full commit hash
ccc56c54a9926e9b73881417b1c4756ad34474b1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
800
      $log_array[] = array('msg' => $msg, 'type' => json_encode($type));
Open commit View diff
800 $log_array[] = array('msg' => $msg, 'type' => json_encode($type));
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
801
    }
Open commit View diff
801 }
Miro Rauhala about 6 years ago 6bff958

[Web] Clean PHP code by removing unused variables (#3646)

Full commit hash
6bff958ab4381f27aba5464bce80290015d4458a
Author
Miro Rauhala <[email protected]>
Date
about 6 years ago
Selected line
802
    if (!empty($log_array)) {
Open commit View diff
802 if (!empty($log_array)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
803
      return $log_array;
Open commit View diff
803 return $log_array;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
804
    }
Open commit View diff
804 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
805
  }
Open commit View diff
805 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
806
  return false;
Open commit View diff
806 return false;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
807
}
Open commit View diff
807 }
andryyy over 5 years ago 04bd216

[Web] Minor fixes

Full commit hash
04bd21663cc07d45a38f956ceb5ef5a3ae60f66f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
808
function verify_salted_hash($hash, $password, $algo, $salt_length) {
Open commit View diff
808 function verify_salted_hash($hash, $password, $algo, $salt_length) {
Felix Kaechele over 5 years ago 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
809
  // Decode hash
Open commit View diff
809 // Decode hash
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
810
  $dhash = base64_decode($hash);
Open commit View diff
810 $dhash = base64_decode($hash);
andryyy over 5 years ago 04bd216

[Web] Minor fixes

Full commit hash
04bd21663cc07d45a38f956ceb5ef5a3ae60f66f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
811
  // Get first n bytes of binary which equals a SSHA hash
Open commit View diff
811 // Get first n bytes of binary which equals a SSHA hash
Felix Kaechele over 5 years ago 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
812
  $ohash = substr($dhash, 0, $salt_length);
Open commit View diff
812 $ohash = substr($dhash, 0, $salt_length);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
813
  // Remove SSHA hash from decoded hash to get original salt string
Open commit View diff
813 // Remove SSHA hash from decoded hash to get original salt string
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
814
  $osalt = str_replace($ohash, '', $dhash);
Open commit View diff
814 $osalt = str_replace($ohash, '', $dhash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
815
  // Check single salted SSHA hash against extracted hash
Open commit View diff
815 // Check single salted SSHA hash against extracted hash
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
816
  if (hash_equals(hash($algo, $password . $osalt, true), $ohash)) {
Open commit View diff
816 if (hash_equals(hash($algo, $password . $osalt, true), $ohash)) {
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
817
    return true;
Open commit View diff
817 return true;
André about 8 years ago 1ce5f09

[Web] Verify new hashes: SSHA512 and SHA512-CRYPT, fix password update for users in sogo static view

Full commit hash
1ce5f09f6e7442e3f81f4b9fd78197cc608d2a8b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
818
  }
Open commit View diff
818 }
Felix Kaechele over 5 years ago 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
819
  return false;
Open commit View diff
819 return false;
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
820
}
Open commit View diff
820 }
andryyy over 5 years ago 04bd216

[Web] Minor fixes

Full commit hash
04bd21663cc07d45a38f956ceb5ef5a3ae60f66f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
821
function verify_hash($hash, $password) {
Open commit View diff
821 function verify_hash($hash, $password) {
Felix Kaechele over 5 years ago 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
822
  if (preg_match('/^{(.+)}(.+)/i', $hash, $hash_array)) {
Open commit View diff
822 if (preg_match('/^{(.+)}(.+)/i', $hash, $hash_array)) {
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
823
    $scheme = strtoupper($hash_array[1]);
Open commit View diff
823 $scheme = strtoupper($hash_array[1]);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
824
    $hash = $hash_array[2];
Open commit View diff
824 $hash = $hash_array[2];
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
825
    switch ($scheme) {
Open commit View diff
825 switch ($scheme) {
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
826
      case "ARGON2I":
Open commit View diff
826 case "ARGON2I":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
827
      case "ARGON2ID":
Open commit View diff
827 case "ARGON2ID":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
828
      case "BLF-CRYPT":
Open commit View diff
828 case "BLF-CRYPT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
829
      case "CRYPT":
Open commit View diff
829 case "CRYPT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
830
      case "DES-CRYPT":
Open commit View diff
830 case "DES-CRYPT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
831
      case "MD5-CRYPT":
Open commit View diff
831 case "MD5-CRYPT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
832
      case "MD5":
Open commit View diff
832 case "MD5":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
833
      case "SHA256-CRYPT":
Open commit View diff
833 case "SHA256-CRYPT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
834
      case "SHA512-CRYPT":
Open commit View diff
834 case "SHA512-CRYPT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
835
        return password_verify($password, $hash);
Open commit View diff
835 return password_verify($password, $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
836
Open commit View diff
836
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
837
      case "CLEAR":
Open commit View diff
837 case "CLEAR":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
838
      case "CLEARTEXT":
Open commit View diff
838 case "CLEARTEXT":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
839
      case "PLAIN":
Open commit View diff
839 case "PLAIN":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
840
        return $password == $hash;
Open commit View diff
840 return $password == $hash;
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
841
Open commit View diff
841
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
842
      case "LDAP-MD5":
Open commit View diff
842 case "LDAP-MD5":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
843
        $hash = base64_decode($hash);
Open commit View diff
843 $hash = base64_decode($hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
844
        return hash_equals(hash('md5', $password, true), $hash);
Open commit View diff
844 return hash_equals(hash('md5', $password, true), $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
845
Open commit View diff
845
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
846
      case "PBKDF2":
Open commit View diff
846 case "PBKDF2":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
847
        $components = explode('$', $hash);
Open commit View diff
847 $components = explode('$', $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
848
        $salt = $components[2];
Open commit View diff
848 $salt = $components[2];
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
849
        $rounds = $components[3];
Open commit View diff
849 $rounds = $components[3];
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
850
        $hash = $components[4];
Open commit View diff
850 $hash = $components[4];
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
851
        return hash_equals(hash_pbkdf2('sha1', $password, $salt, $rounds), $hash);
Open commit View diff
851 return hash_equals(hash_pbkdf2('sha1', $password, $salt, $rounds), $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
852
Open commit View diff
852
Ashitaka 7 months ago 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
853
      case "PBKDF2-SHA512":
Open commit View diff
853 case "PBKDF2-SHA512":
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
854
        // Handle FreeIPA-style hash: {PBKDF2-SHA512}10000$<base64_salt>$<base64_hash>
Open commit View diff
854 // Handle FreeIPA-style hash: {PBKDF2-SHA512}10000$<base64_salt>$<base64_hash>
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
855
        $components = explode('$', $hash);
Open commit View diff
855 $components = explode('$', $hash);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
856
        if (count($components) !== 3) return false;
Open commit View diff
856 if (count($components) !== 3) return false;
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
857
Open commit View diff
857
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
858
        // 1st part: iteration count (integer)
Open commit View diff
858 // 1st part: iteration count (integer)
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
859
        $iterations = intval($components[0]);
Open commit View diff
859 $iterations = intval($components[0]);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
860
        if ($iterations <= 0) return false;
Open commit View diff
860 if ($iterations <= 0) return false;
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
861
Open commit View diff
861
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
862
        // 2nd part: salt (base64-encoded)
Open commit View diff
862 // 2nd part: salt (base64-encoded)
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
863
        $salt = $components[1];
Open commit View diff
863 $salt = $components[1];
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
864
        // 3rd part: hash (base64-encoded)
Open commit View diff
864 // 3rd part: hash (base64-encoded)
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
865
        $stored_hash_b64 = $components[2];
Open commit View diff
865 $stored_hash_b64 = $components[2];
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
866
Open commit View diff
866
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
867
        // Decode salt and hash from base64
Open commit View diff
867 // Decode salt and hash from base64
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
868
        $salt_bin = base64_decode($salt, true);
Open commit View diff
868 $salt_bin = base64_decode($salt, true);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
869
        $hash_bin = base64_decode($stored_hash_b64, true);
Open commit View diff
869 $hash_bin = base64_decode($stored_hash_b64, true);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
870
        if ($salt_bin === false || $hash_bin === false) return false;
Open commit View diff
870 if ($salt_bin === false || $hash_bin === false) return false;
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
871
        // Get length of hash in bytes
Open commit View diff
871 // Get length of hash in bytes
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
872
        $hash_len = strlen($hash_bin);
Open commit View diff
872 $hash_len = strlen($hash_bin);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
873
        if ($hash_len === 0) return false;
Open commit View diff
873 if ($hash_len === 0) return false;
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
874
Open commit View diff
874
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
875
        // Calculate PBKDF2-SHA512 hash for provided password
Open commit View diff
875 // Calculate PBKDF2-SHA512 hash for provided password
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
876
        $test_hash = hash_pbkdf2('sha512', $password, $salt_bin, $iterations, $hash_len, true);
Open commit View diff
876 $test_hash = hash_pbkdf2('sha512', $password, $salt_bin, $iterations, $hash_len, true);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
877
        return hash_equals($hash_bin, $test_hash);
Open commit View diff
877 return hash_equals($hash_bin, $test_hash);
same change 1ab6af2

Merge pull request #6905 from Ashitaka57/6646-pbkdf2-sha512-verify-hash

Full commit hash
1ab6af21e38f95d631d39f3580bc25de92ef60f4
Author
Ashitaka <[email protected]>
Date
7 months ago
Selected line
878
Open commit View diff
878
Felix Kaechele over 5 years ago 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
879
      case "PLAIN-MD4":
Open commit View diff
879 case "PLAIN-MD4":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
880
        return hash_equals(hash('md4', $password), $hash);
Open commit View diff
880 return hash_equals(hash('md4', $password), $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
881
Open commit View diff
881
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
882
      case "PLAIN-MD5":
Open commit View diff
882 case "PLAIN-MD5":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
883
        return md5($password) == $hash;
Open commit View diff
883 return md5($password) == $hash;
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
884
Open commit View diff
884
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
885
      case "PLAIN-TRUNC":
Open commit View diff
885 case "PLAIN-TRUNC":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
886
        $components = explode('-', $hash);
Open commit View diff
886 $components = explode('-', $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
887
        if (count($components) > 1) {
Open commit View diff
887 if (count($components) > 1) {
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
888
          $trunc_len = $components[0];
Open commit View diff
888 $trunc_len = $components[0];
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
889
          $trunc_password = $components[1];
Open commit View diff
889 $trunc_password = $components[1];
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
890
Open commit View diff
890
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
891
          return substr($password, 0, $trunc_len) == $trunc_password;
Open commit View diff
891 return substr($password, 0, $trunc_len) == $trunc_password;
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
892
        } else {
Open commit View diff
892 } else {
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
893
          return $password == $hash;
Open commit View diff
893 return $password == $hash;
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
894
        }
Open commit View diff
894 }
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
895
Open commit View diff
895
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
896
      case "SHA":
Open commit View diff
896 case "SHA":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
897
      case "SHA1":
Open commit View diff
897 case "SHA1":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
898
      case "SHA256":
Open commit View diff
898 case "SHA256":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
899
      case "SHA512":
Open commit View diff
899 case "SHA512":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
900
        // SHA is an alias for SHA1
Open commit View diff
900 // SHA is an alias for SHA1
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
901
        $scheme = $scheme == "SHA" ? "sha1" : strtolower($scheme);
Open commit View diff
901 $scheme = $scheme == "SHA" ? "sha1" : strtolower($scheme);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
902
        $hash = base64_decode($hash);
Open commit View diff
902 $hash = base64_decode($hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
903
        return hash_equals(hash($scheme, $password, true), $hash);
Open commit View diff
903 return hash_equals(hash($scheme, $password, true), $hash);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
904
Open commit View diff
904
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
905
      case "SMD5":
Open commit View diff
905 case "SMD5":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
906
        return verify_salted_hash($hash, $password, 'md5', 16);
Open commit View diff
906 return verify_salted_hash($hash, $password, 'md5', 16);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
907
Open commit View diff
907
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
908
      case "SSHA":
Open commit View diff
908 case "SSHA":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
909
        return verify_salted_hash($hash, $password, 'sha1', 20);
Open commit View diff
909 return verify_salted_hash($hash, $password, 'sha1', 20);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
910
Open commit View diff
910
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
911
      case "SSHA256":
Open commit View diff
911 case "SSHA256":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
912
        return verify_salted_hash($hash, $password, 'sha256', 32);
Open commit View diff
912 return verify_salted_hash($hash, $password, 'sha256', 32);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
913
Open commit View diff
913
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
914
      case "SSHA512":
Open commit View diff
914 case "SSHA512":
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
915
        return verify_salted_hash($hash, $password, 'sha512', 64);
Open commit View diff
915 return verify_salted_hash($hash, $password, 'sha512', 64);
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
916
Open commit View diff
916
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
917
      default:
Open commit View diff
917 default:
same change 31805f1

[Web] Implement all supported dovecot password schemas (#3974)

Full commit hash
31805f165632f80f25ce3f2887bd9bda821771c8
Author
Felix Kaechele <[email protected]>
Date
over 5 years ago
Selected line
918
        return false;
Open commit View diff
918 return false;
Lukas Schreiner over 5 years ago d96bf91

Support of different default pass schemes + support of BLF-CRYPT (#3832)

Full commit hash
d96bf91a0dfc45109e0396546f57ea9297071c03
Author
Lukas Schreiner <[email protected]>
Date
over 5 years ago
Selected line
919
    }
Open commit View diff
919 }
André almost 8 years ago 5db40bf

[Web] Implement MD5-CRYPT verification, fixes #1665

Full commit hash
5db40bf688b3c8824508566877bd795a48ff9673
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
920
  }
Open commit View diff
920 }
André about 8 years ago 2f270f3

[Web] Verify additional password hashes (only SHA512-CRYPT is supported today)

Full commit hash
2f270f3b9b5149a9b4cf5af959ee531554eab32e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
921
  return false;
Open commit View diff
921 return false;
andryyy over 9 years ago 5e883b6

Some last changes

Full commit hash
5e883b6f5167d2d14168babb6f66030f03db487b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
922
}
Open commit View diff
922 }
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
923
function formatBytes($size, $precision = 2) {
Open commit View diff
923 function formatBytes($size, $precision = 2) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
924
  if(!is_numeric($size)) {
Open commit View diff
924 if(!is_numeric($size)) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
925
    return "0";
Open commit View diff
925 return "0";
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
926
  }
Open commit View diff
926 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
927
  $base = log($size, 1024);
Open commit View diff
927 $base = log($size, 1024);
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
928
  $suffixes = array(' Byte', ' KiB', ' MiB', ' GiB', ' TiB');
Open commit View diff
928 $suffixes = array(' Byte', ' KiB', ' MiB', ' GiB', ' TiB');
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
929
  if ($size == "0") {
Open commit View diff
929 if ($size == "0") {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
930
    return "0";
Open commit View diff
930 return "0";
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
931
  }
Open commit View diff
931 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
932
  return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)];
Open commit View diff
932 return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)];
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
933
}
Open commit View diff
933 }
FreddleSpl0it over 3 years ago d9d9583

[Web] optimizing update_sogo_static_view function

Full commit hash
d9d958356a456018d028c94efdbb0871078ed131
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
934
function update_sogo_static_view($mailbox = null) {
Open commit View diff
934 function update_sogo_static_view($mailbox = null) {
andryyy about 6 years ago a6247fc

[Web] Do not try to update sogo static view with skip_sogo y

Full commit hash
a6247fc13f20f5c42687c9ad8ce7cc37221e5e43
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
935
  if (getenv('SKIP_SOGO') == "y") {
Open commit View diff
935 if (getenv('SKIP_SOGO') == "y") {
same change a6247fc

[Web] Do not try to update sogo static view with skip_sogo y

Full commit hash
a6247fc13f20f5c42687c9ad8ce7cc37221e5e43
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
936
    return true;
Open commit View diff
936 return true;
same change a6247fc

[Web] Do not try to update sogo static view with skip_sogo y

Full commit hash
a6247fc13f20f5c42687c9ad8ce7cc37221e5e43
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
937
  }
Open commit View diff
937 }
André about 8 years ago 1ce5f09

[Web] Verify new hashes: SSHA512 and SHA512-CRYPT, fix password update for users in sogo static view

Full commit hash
1ce5f09f6e7442e3f81f4b9fd78197cc608d2a8b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
938
  global $pdo;
Open commit View diff
938 global $pdo;
same change 1ce5f09

[Web] Verify new hashes: SSHA512 and SHA512-CRYPT, fix password update for users in sogo static view

Full commit hash
1ce5f09f6e7442e3f81f4b9fd78197cc608d2a8b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
939
  global $lang;
Open commit View diff
939 global $lang;
FreddleSpl0it over 3 years ago e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
940
Open commit View diff
940
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
941
  $mailbox_exists = false;
Open commit View diff
941 $mailbox_exists = false;
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
942
  if ($mailbox !== null) {
Open commit View diff
942 if ($mailbox !== null) {
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
943
    // Check if the mailbox exists
Open commit View diff
943 // Check if the mailbox exists
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
944
    $stmt = $pdo->prepare("SELECT username FROM mailbox WHERE username = :mailbox AND active = '1'");
Open commit View diff
944 $stmt = $pdo->prepare("SELECT username FROM mailbox WHERE username = :mailbox AND active = '1'");
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
945
    $stmt->execute(array(':mailbox' => $mailbox));
Open commit View diff
945 $stmt->execute(array(':mailbox' => $mailbox));
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
946
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
946 $row = $stmt->fetch(PDO::FETCH_ASSOC);
FreddleSpl0it over 3 years ago e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
947
    if ($row){
Open commit View diff
947 if ($row){
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
948
      $mailbox_exists = true;
Open commit View diff
948 $mailbox_exists = true;
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
949
    }
Open commit View diff
949 }
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
950
  }
Open commit View diff
950 }
same change e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
951
Open commit View diff
951
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
952
  // generate random password for sogo to deny direct login
Open commit View diff
952 // generate random password for sogo to deny direct login
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
953
  $random_password = base64_encode(openssl_random_pseudo_bytes(24));
Open commit View diff
953 $random_password = base64_encode(openssl_random_pseudo_bytes(24));
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
954
  $random_salt = base64_encode(openssl_random_pseudo_bytes(16));
Open commit View diff
954 $random_salt = base64_encode(openssl_random_pseudo_bytes(16));
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
955
  $random_hash = '{SSHA256}' . base64_encode(hash('sha256', base64_decode($password) . $salt, true) . $salt);
Open commit View diff
955 $random_hash = '{SSHA256}' . base64_encode(hash('sha256', base64_decode($password) . $salt, true) . $salt);
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
956
Open commit View diff
956
FreddleSpl0it almost 3 years ago ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
957
  $subquery = "GROUP BY mailbox.username";
Open commit View diff
957 $subquery = "GROUP BY mailbox.username";
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
958
  if ($mailbox_exists) {
Open commit View diff
958 if ($mailbox_exists) {
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
959
    $subquery = "AND mailbox.username = :mailbox";
Open commit View diff
959 $subquery = "AND mailbox.username = :mailbox";
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
960
  }
Open commit View diff
960 }
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
961
  $query = "INSERT INTO _sogo_static_view (`c_uid`, `domain`, `c_name`, `c_password`, `c_cn`, `mail`, `aliases`, `ad_aliases`, `ext_acl`, `kind`, `multiple_bookings`)
Open commit View diff
961 $query = "INSERT INTO _sogo_static_view (`c_uid`, `domain`, `c_name`, `c_password`, `c_cn`, `mail`, `aliases`, `ad_aliases`, `ext_acl`, `kind`, `multiple_bookings`)
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
962
      SELECT
Open commit View diff
962 SELECT
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
963
        mailbox.username,
Open commit View diff
963 mailbox.username,
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
964
        mailbox.domain,
Open commit View diff
964 mailbox.domain,
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
965
        mailbox.username,
Open commit View diff
965 mailbox.username,
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
966
        :random_hash,
Open commit View diff
966 :random_hash,
FreddleSpl0it almost 3 years ago ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
967
        mailbox.name,
Open commit View diff
967 mailbox.name,
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
968
        mailbox.username,
Open commit View diff
968 mailbox.username,
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
969
        IFNULL(GROUP_CONCAT(ga.aliases ORDER BY ga.aliases SEPARATOR ' '), ''),
Open commit View diff
969 IFNULL(GROUP_CONCAT(ga.aliases ORDER BY ga.aliases SEPARATOR ' '), ''),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
970
        IFNULL(gda.ad_alias, ''),
Open commit View diff
970 IFNULL(gda.ad_alias, ''),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
971
        IFNULL(external_acl.send_as_acl, ''),
Open commit View diff
971 IFNULL(external_acl.send_as_acl, ''),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
972
        mailbox.kind,
Open commit View diff
972 mailbox.kind,
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
973
        mailbox.multiple_bookings
Open commit View diff
973 mailbox.multiple_bookings
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
974
      FROM
Open commit View diff
974 FROM
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
975
        mailbox
Open commit View diff
975 mailbox
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
976
        LEFT OUTER JOIN grouped_mail_aliases ga ON ga.username REGEXP CONCAT('(^|,)', mailbox.username, '($|,)')
Open commit View diff
976 LEFT OUTER JOIN grouped_mail_aliases ga ON ga.username REGEXP CONCAT('(^|,)', mailbox.username, '($|,)')
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
977
        LEFT OUTER JOIN grouped_domain_alias_address gda ON gda.username = mailbox.username
Open commit View diff
977 LEFT OUTER JOIN grouped_domain_alias_address gda ON gda.username = mailbox.username
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
978
        LEFT OUTER JOIN grouped_sender_acl_external external_acl ON external_acl.username = mailbox.username
Open commit View diff
978 LEFT OUTER JOIN grouped_sender_acl_external external_acl ON external_acl.username = mailbox.username
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
979
      WHERE
Open commit View diff
979 WHERE
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
980
        mailbox.active = '1'
Open commit View diff
980 mailbox.active = '1'
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
981
        $subquery
Open commit View diff
981 $subquery
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
982
      ON DUPLICATE KEY UPDATE
Open commit View diff
982 ON DUPLICATE KEY UPDATE
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
983
        `domain` = VALUES(`domain`),
Open commit View diff
983 `domain` = VALUES(`domain`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
984
        `c_name` = VALUES(`c_name`),
Open commit View diff
984 `c_name` = VALUES(`c_name`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
985
        `c_password` = VALUES(`c_password`),
Open commit View diff
985 `c_password` = VALUES(`c_password`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
986
        `c_cn` = VALUES(`c_cn`),
Open commit View diff
986 `c_cn` = VALUES(`c_cn`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
987
        `mail` = VALUES(`mail`),
Open commit View diff
987 `mail` = VALUES(`mail`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
988
        `aliases` = VALUES(`aliases`),
Open commit View diff
988 `aliases` = VALUES(`aliases`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
989
        `ad_aliases` = VALUES(`ad_aliases`),
Open commit View diff
989 `ad_aliases` = VALUES(`ad_aliases`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
990
        `ext_acl` = VALUES(`ext_acl`),
Open commit View diff
990 `ext_acl` = VALUES(`ext_acl`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
991
        `kind` = VALUES(`kind`),
Open commit View diff
991 `kind` = VALUES(`kind`),
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
992
        `multiple_bookings` = VALUES(`multiple_bookings`)";
Open commit View diff
992 `multiple_bookings` = VALUES(`multiple_bookings`)";
same change ccc17e4

[SOGo] deny direct login on external users

Full commit hash
ccc17e4a201ba35311ceef1be37e7a06c49c0896
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
993
Open commit View diff
993
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
994
Open commit View diff
994
FreddleSpl0it over 3 years ago e1d8df6

[Web] check mailbox before replacing sogo_static_view

Full commit hash
e1d8df658031033232f939a9af43dd8e0f448d02
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
995
  if ($mailbox_exists) {
Open commit View diff
995 if ($mailbox_exists) {
FreddleSpl0it over 3 years ago 4121509

[Web] optimizing update_sogo_static_view function

Full commit hash
4121509ceb34161ba0c38db899d6c9a287eede94
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
996
    $stmt = $pdo->prepare($query);
Open commit View diff
996 $stmt = $pdo->prepare($query);
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
997
    $stmt->execute(array(
Open commit View diff
997 $stmt->execute(array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
998
      ':random_hash' => $random_hash,
Open commit View diff
998 ':random_hash' => $random_hash,
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
999
      ':mailbox' => $mailbox
Open commit View diff
999 ':mailbox' => $mailbox
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1000
    ));
Open commit View diff
1000 ));
FreddleSpl0it over 3 years ago 4121509

[Web] optimizing update_sogo_static_view function

Full commit hash
4121509ceb34161ba0c38db899d6c9a287eede94
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1001
  } else {
Open commit View diff
1001 } else {
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1002
    $stmt = $pdo->prepare($query);
Open commit View diff
1002 $stmt = $pdo->prepare($query);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1003
    $stmt->execute(array(
Open commit View diff
1003 $stmt->execute(array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1004
      ':random_hash' => $random_hash
Open commit View diff
1004 ':random_hash' => $random_hash
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1005
    ));
Open commit View diff
1005 ));
FreddleSpl0it over 3 years ago 4121509

[Web] optimizing update_sogo_static_view function

Full commit hash
4121509ceb34161ba0c38db899d6c9a287eede94
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1006
  }
Open commit View diff
1006 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1007
Open commit View diff
1007
FreddleSpl0it over 3 years ago 4121509

[Web] optimizing update_sogo_static_view function

Full commit hash
4121509ceb34161ba0c38db899d6c9a287eede94
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1008
  $stmt = $pdo->query("DELETE FROM _sogo_static_view WHERE `c_uid` NOT IN (SELECT `username` FROM `mailbox` WHERE `active` = '1');");
Open commit View diff
1008 $stmt = $pdo->query("DELETE FROM _sogo_static_view WHERE `c_uid` NOT IN (SELECT `username` FROM `mailbox` WHERE `active` = '1');");
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1009
Open commit View diff
1009
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1010
  flush_memcached();
Open commit View diff
1010 flush_memcached();
André about 8 years ago 1ce5f09

[Web] Verify new hashes: SSHA512 and SHA512-CRYPT, fix password update for users in sogo static view

Full commit hash
1ce5f09f6e7442e3f81f4b9fd78197cc608d2a8b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
1011
}
Open commit View diff
1011 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1012
function edit_user_account($_data) {
Open commit View diff
1012 function edit_user_account($_data) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1013
  global $lang;
Open commit View diff
1013 global $lang;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1014
  global $pdo;
Open commit View diff
1014 global $pdo;
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1015
Open commit View diff
1015
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1016
  $_data_log = $_data;
Open commit View diff
1016 $_data_log = $_data;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1017
  !isset($_data_log['user_new_pass']) ?: $_data_log['user_new_pass'] = '*';
Open commit View diff
1017 !isset($_data_log['user_new_pass']) ?: $_data_log['user_new_pass'] = '*';
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1018
  !isset($_data_log['user_new_pass2']) ?: $_data_log['user_new_pass2'] = '*';
Open commit View diff
1018 !isset($_data_log['user_new_pass2']) ?: $_data_log['user_new_pass2'] = '*';
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1019
  !isset($_data_log['user_old_pass']) ?: $_data_log['user_old_pass'] = '*';
Open commit View diff
1019 !isset($_data_log['user_old_pass']) ?: $_data_log['user_old_pass'] = '*';
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1020
Open commit View diff
1020
andryyy about 9 years ago 84ad579

[Web] Initial ratelimit support, more API actions

Full commit hash
84ad579437d6e978923b4b82718867fdeb8c9b77
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1021
  $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1021 $username = $_SESSION['mailcow_cc_username'];
same change 84ad579

[Web] Initial ratelimit support, more API actions

Full commit hash
84ad579437d6e978923b4b82718867fdeb8c9b77
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1022
  $role = $_SESSION['mailcow_cc_role'];
Open commit View diff
1022 $role = $_SESSION['mailcow_cc_role'];
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1023
  $password_old = $_data['user_old_pass'];
Open commit View diff
1023 $password_old = $_data['user_old_pass'];
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1024
  $pw_recovery_email = $_data['pw_recovery_email'];
Open commit View diff
1024 $pw_recovery_email = $_data['pw_recovery_email'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1025
Open commit View diff
1025
andryyy about 9 years ago 84ad579

[Web] Initial ratelimit support, more API actions

Full commit hash
84ad579437d6e978923b4b82718867fdeb8c9b77
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1026
  if (filter_var($username, FILTER_VALIDATE_EMAIL === false) || $role != 'user') {
Open commit View diff
1026 if (filter_var($username, FILTER_VALIDATE_EMAIL === false) || $role != 'user') {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1027
    $_SESSION['return'][] =  array(
Open commit View diff
1027 $_SESSION['return'][] = array(
andryyy about 9 years ago 84ad579

[Web] Initial ratelimit support, more API actions

Full commit hash
84ad579437d6e978923b4b82718867fdeb8c9b77
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1028
      'type' => 'danger',
Open commit View diff
1028 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1029
      'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1029 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1030
      'msg' => 'access_denied'
Open commit View diff
1030 'msg' => 'access_denied'
andryyy about 9 years ago 84ad579

[Web] Initial ratelimit support, more API actions

Full commit hash
84ad579437d6e978923b4b82718867fdeb8c9b77
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1031
    );
Open commit View diff
1031 );
same change 84ad579

[Web] Initial ratelimit support, more API actions

Full commit hash
84ad579437d6e978923b4b82718867fdeb8c9b77
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1032
    return false;
Open commit View diff
1032 return false;
andryyy over 9 years ago c34a7b6

More changes for better structure and minimal json api in dev

Full commit hash
c34a7b69b809ddb06a10801e2a46168101cc4b30
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1033
  }
Open commit View diff
1033 }
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1034
Open commit View diff
1034
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1035
  // edit password
Open commit View diff
1035 // edit password
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1036
  $is_forced_pw_update = !empty($_SESSION['pending_pw_update']);
Open commit View diff
1036 $is_forced_pw_update = !empty($_SESSION['pending_pw_update']);
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1037
  if (((!empty($password_old) || $is_forced_pw_update) && !empty($_data['user_new_pass']) && !empty($_data['user_new_pass2']))) {
Open commit View diff
1037 if (((!empty($password_old) || $is_forced_pw_update) && !empty($_data['user_new_pass']) && !empty($_data['user_new_pass2']))) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1038
    // Only verify old password if this is NOT a forced password update
Open commit View diff
1038 // Only verify old password if this is NOT a forced password update
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1039
    if (!$is_forced_pw_update) {
Open commit View diff
1039 if (!$is_forced_pw_update) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1040
      $stmt = $pdo->prepare("SELECT `password` FROM `mailbox`
Open commit View diff
1040 $stmt = $pdo->prepare("SELECT `password` FROM `mailbox`
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1041
          WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
1041 WHERE `kind` NOT REGEXP 'location|thing|group'
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1042
            AND `username` = :user AND authsource = 'mailcow'");
Open commit View diff
1042 AND `username` = :user AND authsource = 'mailcow'");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1043
      $stmt->execute(array(':user' => $username));
Open commit View diff
1043 $stmt->execute(array(':user' => $username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1044
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1044 $row = $stmt->fetch(PDO::FETCH_ASSOC);
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1045
Open commit View diff
1045
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1046
      if (!verify_hash($row['password'], $password_old)) {
Open commit View diff
1046 if (!verify_hash($row['password'], $password_old)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1047
        $_SESSION['return'][] =  array(
Open commit View diff
1047 $_SESSION['return'][] = array(
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1048
          'type' => 'danger',
Open commit View diff
1048 'type' => 'danger',
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1049
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1049 'log' => array(__FUNCTION__, $_data_log),
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1050
          'msg' => 'access_denied'
Open commit View diff
1050 'msg' => 'access_denied'
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1051
        );
Open commit View diff
1051 );
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1052
        return false;
Open commit View diff
1052 return false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1053
      }
Open commit View diff
1053 }
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1054
    }
Open commit View diff
1054 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1055
Open commit View diff
1055
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1056
    $password_new = $_data['user_new_pass'];
Open commit View diff
1056 $password_new = $_data['user_new_pass'];
same change 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1057
    $password_new2  = $_data['user_new_pass2'];
Open commit View diff
1057 $password_new2 = $_data['user_new_pass2'];
andryyy about 5 years ago 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1058
    if (password_check($password_new, $password_new2) !== true) {
Open commit View diff
1058 if (password_check($password_new, $password_new2) !== true) {
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1059
      return false;
Open commit View diff
1059 return false;
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1060
    }
Open commit View diff
1060 }
Shea Ramage about 5 years ago 08dfc02

[Web] Remove redundant password hash checks (#4180)

Full commit hash
08dfc0220efd48a4c6d5a20c9504a9ba1b63964c
Author
Shea Ramage <[email protected]>
Date
about 5 years ago
Selected line
1061
    $password_hashed = hash_password($password_new);
Open commit View diff
1061 $password_hashed = hash_password($password_new);
andryyy about 5 years ago 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1062
    $stmt = $pdo->prepare("UPDATE `mailbox` SET `password` = :password_hashed,
Open commit View diff
1062 $stmt = $pdo->prepare("UPDATE `mailbox` SET `password` = :password_hashed,
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1063
      `attributes` = JSON_SET(`attributes`, '$.force_pw_update', '0'),
Open commit View diff
1063 `attributes` = JSON_SET(`attributes`, '$.force_pw_update', '0'),
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1064
      `attributes` = JSON_SET(`attributes`, '$.passwd_update', NOW())
Open commit View diff
1064 `attributes` = JSON_SET(`attributes`, '$.passwd_update', NOW())
FreddleSpl0it about 3 years ago 5545d8a

[Web] hide auth settings for external users

Full commit hash
5545d8a56c87f4f3e8267d4a5954470466cdbecd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
1065
        WHERE `username` = :username AND authsource = 'mailcow'");
Open commit View diff
1065 WHERE `username` = :username AND authsource = 'mailcow'");
andryyy about 5 years ago 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1066
    $stmt->execute(array(
Open commit View diff
1066 $stmt->execute(array(
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1067
      ':password_hashed' => $password_hashed,
Open commit View diff
1067 ':password_hashed' => $password_hashed,
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1068
      ':username' => $username
Open commit View diff
1068 ':username' => $username
same change 9773d35

[Web] Fix password policy for mailbox user; minor Solr status fix

Full commit hash
9773d3549e954c1bb89a280294cdfb57f593e254
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1069
    ));
Open commit View diff
1069 ));
FreddleSpl0it over 1 year ago cb47fa4

[Web] Fix force password update at next login

Full commit hash
cb47fa406f10ce929543e3e918c11b985a500ab2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1070
    $_SESSION['pending_pw_update'] = false;
Open commit View diff
1070 $_SESSION['pending_pw_update'] = false;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1071
Open commit View diff
1071
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1072
    update_sogo_static_view();
Open commit View diff
1072 update_sogo_static_view();
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1073
  }
Open commit View diff
1073 }
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1074
  // edit password recovery email
Open commit View diff
1074 // edit password recovery email
FreddleSpl0it 9 months ago b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1075
  elseif (!empty($password_old) && isset($pw_recovery_email)) {
Open commit View diff
1075 elseif (!empty($password_old) && isset($pw_recovery_email)) {
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1076
    if (!isset($_SESSION['acl']['pw_reset']) || $_SESSION['acl']['pw_reset'] != "1" ) {
Open commit View diff
1076 if (!isset($_SESSION['acl']['pw_reset']) || $_SESSION['acl']['pw_reset'] != "1" ) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1077
      $_SESSION['return'][] = array(
Open commit View diff
1077 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1078
        'type' => 'danger',
Open commit View diff
1078 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1079
        'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
Open commit View diff
1079 'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1080
        'msg' => 'access_denied'
Open commit View diff
1080 'msg' => 'access_denied'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1081
      );
Open commit View diff
1081 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1082
      return false;
Open commit View diff
1082 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1083
    }
Open commit View diff
1083 }
FreddleSpl0it almost 2 years ago c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1084
Open commit View diff
1084
FreddleSpl0it 9 months ago b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1085
    $stmt = $pdo->prepare("SELECT `password` FROM `mailbox`
Open commit View diff
1085 $stmt = $pdo->prepare("SELECT `password` FROM `mailbox`
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1086
        WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
1086 WHERE `kind` NOT REGEXP 'location|thing|group'
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1087
          AND `username` = :user AND authsource = 'mailcow'");
Open commit View diff
1087 AND `username` = :user AND authsource = 'mailcow'");
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1088
    $stmt->execute(array(':user' => $username));
Open commit View diff
1088 $stmt->execute(array(':user' => $username));
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1089
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1089 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1090
Open commit View diff
1090
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1091
    if (!verify_hash($row['password'], $password_old)) {
Open commit View diff
1091 if (!verify_hash($row['password'], $password_old)) {
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1092
      $_SESSION['return'][] =  array(
Open commit View diff
1092 $_SESSION['return'][] = array(
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1093
        'type' => 'danger',
Open commit View diff
1093 'type' => 'danger',
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1094
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1094 'log' => array(__FUNCTION__, $_data_log),
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1095
        'msg' => 'access_denied'
Open commit View diff
1095 'msg' => 'access_denied'
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1096
      );
Open commit View diff
1096 );
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1097
      return false;
Open commit View diff
1097 return false;
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1098
    }
Open commit View diff
1098 }
same change b85837c

[Web] Add password verification when setting recovery email

Full commit hash
b85837c803f06643ee6bb466ef8957414e3e910a
Author
FreddleSpl0it <[email protected]>
Date
9 months ago
Selected line
1099
Open commit View diff
1099
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1100
    $pw_recovery_email = (!filter_var($pw_recovery_email, FILTER_VALIDATE_EMAIL)) ? '' : $pw_recovery_email;
Open commit View diff
1100 $pw_recovery_email = (!filter_var($pw_recovery_email, FILTER_VALIDATE_EMAIL)) ? '' : $pw_recovery_email;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1101
    $stmt = $pdo->prepare("UPDATE `mailbox` SET `attributes` = JSON_SET(`attributes`, '$.recovery_email', :recovery_email)
Open commit View diff
1101 $stmt = $pdo->prepare("UPDATE `mailbox` SET `attributes` = JSON_SET(`attributes`, '$.recovery_email', :recovery_email)
FreddleSpl0it almost 2 years ago 962ac39

Merge remote-tracking branch 'origin/staging' into nightly

Full commit hash
962ac39e4aa6232ce046f57923e72aeeb25f32a8
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1102
      WHERE `username` = :username AND authsource = 'mailcow'");
Open commit View diff
1102 WHERE `username` = :username AND authsource = 'mailcow'");
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1103
    $stmt->execute(array(
Open commit View diff
1103 $stmt->execute(array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1104
      ':recovery_email' => $pw_recovery_email,
Open commit View diff
1104 ':recovery_email' => $pw_recovery_email,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1105
      ':username' => $username
Open commit View diff
1105 ':username' => $username
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1106
    ));
Open commit View diff
1106 ));
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1107
  }
Open commit View diff
1107 }
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1108
Open commit View diff
1108
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1109
  $_SESSION['return'][] =  array(
Open commit View diff
1109 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1110
    'type' => 'success',
Open commit View diff
1110 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1111
    'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1111 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1112
    'msg' => array('mailbox_modified', htmlspecialchars($username))
Open commit View diff
1112 'msg' => array('mailbox_modified', htmlspecialchars($username))
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1113
  );
Open commit View diff
1113 );
andryyy over 9 years ago 365abdd

Cleanup, cleanup and cleanup, much better sender acl handling, imapsync jobs, login as mailbox user X

Full commit hash
365abdda018af236829dfb08db2b68fc32ebaa14
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1114
}
Open commit View diff
1114 }
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1115
function user_get_alias_details($username) {
Open commit View diff
1115 function user_get_alias_details($username) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1116
  global $pdo;
Open commit View diff
1116 global $pdo;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1117
  global $lang;
Open commit View diff
1117 global $lang;
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1118
  $data['direct_aliases'] = array();
Open commit View diff
1118 $data['direct_aliases'] = array();
same change 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1119
  $data['shared_aliases'] = array();
Open commit View diff
1119 $data['shared_aliases'] = array();
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1120
  if ($_SESSION['mailcow_cc_role'] == "user") {
Open commit View diff
1120 if ($_SESSION['mailcow_cc_role'] == "user") {
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1121
    $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1121 $username = $_SESSION['mailcow_cc_username'];
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1122
  }
Open commit View diff
1122 }
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1123
  if (!filter_var($username, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
1123 if (!filter_var($username, FILTER_VALIDATE_EMAIL)) {
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1124
    return false;
Open commit View diff
1124 return false;
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1125
  }
Open commit View diff
1125 }
andryyy about 5 years ago 735bcb2

[Web] Allow to select aliases for BCC

Full commit hash
735bcb2f55e93c0025697850635128e178958c5a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1126
  if (!hasMailboxObjectAccess($username, $_SESSION['mailcow_cc_role'], $username)) {
Open commit View diff
1126 if (!hasMailboxObjectAccess($username, $_SESSION['mailcow_cc_role'], $username)) {
same change 735bcb2

[Web] Allow to select aliases for BCC

Full commit hash
735bcb2f55e93c0025697850635128e178958c5a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1127
    return false;
Open commit View diff
1127 return false;
same change 735bcb2

[Web] Allow to select aliases for BCC

Full commit hash
735bcb2f55e93c0025697850635128e178958c5a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1128
  }
Open commit View diff
1128 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1129
  $data['address'] = $username;
Open commit View diff
1129 $data['address'] = $username;
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1130
  $stmt = $pdo->prepare("SELECT `address` AS `shared_aliases`, `public_comment` FROM `alias`
Open commit View diff
1130 $stmt = $pdo->prepare("SELECT `address` AS `shared_aliases`, `public_comment` FROM `alias`
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1131
    WHERE `goto` REGEXP :username_goto
Open commit View diff
1131 WHERE `goto` REGEXP :username_goto
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1132
    AND `address` NOT LIKE '@%'
Open commit View diff
1132 AND `address` NOT LIKE '@%'
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1133
    AND `goto` != :username_goto2
Open commit View diff
1133 AND `goto` != :username_goto2
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1134
    AND `address` != :username_address");
Open commit View diff
1134 AND `address` != :username_address");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1135
  $stmt->execute(array(
Open commit View diff
1135 $stmt->execute(array(
FreddleSpl0it over 1 year ago abd789f

[Web] Escape mailbox name before querying aliases

Full commit hash
abd789f629a88e5cf7e5eb45f2c19224e91e2f25
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1136
    ':username_goto' => '(^|,)'.preg_quote($username, '/').'($|,)',
Open commit View diff
1136 ':username_goto' => '(^|,)'.preg_quote($username, '/').'($|,)',
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1137
    ':username_goto2' => $username,
Open commit View diff
1137 ':username_goto2' => $username,
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1138
    ':username_address' => $username
Open commit View diff
1138 ':username_address' => $username
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1139
    ));
Open commit View diff
1139 ));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1140
  $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1140 $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1141
  while ($row = array_shift($run)) {
Open commit View diff
1141 while ($row = array_shift($run)) {
andryyy over 7 years ago d60c6a4

[Web] Fix shared alias displain in user view, fixes #2274

Full commit hash
d60c6a4e56a447bfa9e0592df41e0a3ce550f4f3
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1142
    $data['shared_aliases'][$row['shared_aliases']]['public_comment'] = htmlspecialchars($row['public_comment']);
Open commit View diff
1142 $data['shared_aliases'][$row['shared_aliases']]['public_comment'] = htmlspecialchars($row['public_comment']);
same change d60c6a4

[Web] Fix shared alias displain in user view, fixes #2274

Full commit hash
d60c6a4e56a447bfa9e0592df41e0a3ce550f4f3
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1143
    //$data['shared_aliases'][] = $row['shared_aliases'];
Open commit View diff
1143 //$data['shared_aliases'][] = $row['shared_aliases'];
andryyy over 9 years ago 365abdd

Cleanup, cleanup and cleanup, much better sender acl handling, imapsync jobs, login as mailbox user X

Full commit hash
365abdda018af236829dfb08db2b68fc32ebaa14
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1144
  }
Open commit View diff
1144 }
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1145
Open commit View diff
1145
same change 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1146
  $stmt = $pdo->prepare("SELECT `address` AS `direct_aliases`, `public_comment` FROM `alias`
Open commit View diff
1146 $stmt = $pdo->prepare("SELECT `address` AS `direct_aliases`, `public_comment` FROM `alias`
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1147
    WHERE `goto` = :username_goto
Open commit View diff
1147 WHERE `goto` = :username_goto
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1148
    AND `address` NOT LIKE '@%'
Open commit View diff
1148 AND `address` NOT LIKE '@%'
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1149
    AND `address` != :username_address");
Open commit View diff
1149 AND `address` != :username_address");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1150
  $stmt->execute(
Open commit View diff
1150 $stmt->execute(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1151
    array(
Open commit View diff
1151 array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1152
    ':username_goto' => $username,
Open commit View diff
1152 ':username_goto' => $username,
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1153
    ':username_address' => $username
Open commit View diff
1153 ':username_address' => $username
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1154
  ));
Open commit View diff
1154 ));
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1155
  $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1155 $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1156
  while ($row = array_shift($run)) {
Open commit View diff
1156 while ($row = array_shift($run)) {
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1157
    $data['direct_aliases'][$row['direct_aliases']]['public_comment'] = htmlspecialchars($row['public_comment']);
Open commit View diff
1157 $data['direct_aliases'][$row['direct_aliases']]['public_comment'] = htmlspecialchars($row['public_comment']);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1158
  }
Open commit View diff
1158 }
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1159
  $stmt = $pdo->prepare("SELECT CONCAT(local_part, '@', alias_domain) AS `ad_alias`, `alias_domain` FROM `mailbox`
Open commit View diff
1159 $stmt = $pdo->prepare("SELECT CONCAT(local_part, '@', alias_domain) AS `ad_alias`, `alias_domain` FROM `mailbox`
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1160
    LEFT OUTER JOIN `alias_domain` on `target_domain` = `domain`
Open commit View diff
1160 LEFT OUTER JOIN `alias_domain` on `target_domain` = `domain`
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1161
      WHERE `username` = :username ;");
Open commit View diff
1161 WHERE `username` = :username ;");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1162
  $stmt->execute(array(':username' => $username));
Open commit View diff
1162 $stmt->execute(array(':username' => $username));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1163
  $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1163 $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1164
  while ($row = array_shift($run)) {
Open commit View diff
1164 while ($row = array_shift($run)) {
andryyy over 7 years ago 4a1362f

[Web] Minor alias overview fix

Full commit hash
4a1362fc4de263e3de92d7b673b56f9dca48cc67
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1165
    if (empty($row['ad_alias'])) {
Open commit View diff
1165 if (empty($row['ad_alias'])) {
same change 4a1362f

[Web] Minor alias overview fix

Full commit hash
4a1362fc4de263e3de92d7b673b56f9dca48cc67
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1166
      continue;
Open commit View diff
1166 continue;
same change 4a1362f

[Web] Minor alias overview fix

Full commit hash
4a1362fc4de263e3de92d7b673b56f9dca48cc67
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1167
    }
Open commit View diff
1167 }
andryyy about 5 years ago 7050d7c

[Web] Fix BCC validation for aliases

Full commit hash
7050d7c259a7e712111e0fc2a5b21b880ee1eada
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1168
    $data['direct_aliases'][$row['ad_alias']]['public_comment'] = $lang['add']['alias_domain'];
Open commit View diff
1168 $data['direct_aliases'][$row['ad_alias']]['public_comment'] = $lang['add']['alias_domain'];
andryyy about 5 years ago e21e0b9

[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time

Full commit hash
e21e0b9dbf70c49141b365bf68532a7cc3dd3964
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1169
    $data['alias_domains'][] = $row['alias_domain'];
Open commit View diff
1169 $data['alias_domains'][] = $row['alias_domain'];
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1170
  }
Open commit View diff
1170 }
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1171
  $stmt = $pdo->prepare("SELECT IFNULL(GROUP_CONCAT(`send_as` SEPARATOR ', '), '') AS `send_as` FROM `sender_acl` WHERE `logged_in_as` = :username AND `send_as` NOT LIKE '@%';");
Open commit View diff
1171 $stmt = $pdo->prepare("SELECT IFNULL(GROUP_CONCAT(`send_as` SEPARATOR ', '), '') AS `send_as` FROM `sender_acl` WHERE `logged_in_as` = :username AND `send_as` NOT LIKE '@%';");
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1172
  $stmt->execute(array(':username' => $username));
Open commit View diff
1172 $stmt->execute(array(':username' => $username));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1173
  $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1173 $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1174
  while ($row = array_shift($run)) {
Open commit View diff
1174 while ($row = array_shift($run)) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1175
    $data['aliases_also_send_as'] = $row['send_as'];
Open commit View diff
1175 $data['aliases_also_send_as'] = $row['send_as'];
andryyy over 9 years ago 365abdd

Cleanup, cleanup and cleanup, much better sender acl handling, imapsync jobs, login as mailbox user X

Full commit hash
365abdda018af236829dfb08db2b68fc32ebaa14
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1176
  }
Open commit View diff
1176 }
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1177
  $stmt = $pdo->prepare("SELECT CONCAT_WS(', ', IFNULL(GROUP_CONCAT(DISTINCT `send_as` SEPARATOR ', '), ''), GROUP_CONCAT(DISTINCT CONCAT('@',`alias_domain`) SEPARATOR ', ')) AS `send_as` FROM `sender_acl` LEFT JOIN `alias_domain` ON `alias_domain`.`target_domain` =  TRIM(LEADING '@' FROM `send_as`) WHERE `logged_in_as` = :username AND `send_as` LIKE '@%';");
Open commit View diff
1177 $stmt = $pdo->prepare("SELECT CONCAT_WS(', ', IFNULL(GROUP_CONCAT(DISTINCT `send_as` SEPARATOR ', '), ''), GROUP_CONCAT(DISTINCT CONCAT('@',`alias_domain`) SEPARATOR ', ')) AS `send_as` FROM `sender_acl` LEFT JOIN `alias_domain` ON `alias_domain`.`target_domain` = TRIM(LEADING '@' FROM `send_as`) WHERE `logged_in_as` = :username AND `send_as` LIKE '@%';");
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1178
  $stmt->execute(array(':username' => $username));
Open commit View diff
1178 $stmt->execute(array(':username' => $username));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1179
  $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1179 $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1180
  while ($row = array_shift($run)) {
Open commit View diff
1180 while ($row = array_shift($run)) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1181
    $data['aliases_send_as_all'] = $row['send_as'];
Open commit View diff
1181 $data['aliases_send_as_all'] = $row['send_as'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1182
  }
Open commit View diff
1182 }
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1183
  $stmt = $pdo->prepare("SELECT IFNULL(GROUP_CONCAT(`address` SEPARATOR ', '), '') as `address` FROM `alias` WHERE `goto` REGEXP :username AND `address` LIKE '@%';");
Open commit View diff
1183 $stmt = $pdo->prepare("SELECT IFNULL(GROUP_CONCAT(`address` SEPARATOR ', '), '') as `address` FROM `alias` WHERE `goto` REGEXP :username AND `address` LIKE '@%';");
FreddleSpl0it over 1 year ago abd789f

[Web] Escape mailbox name before querying aliases

Full commit hash
abd789f629a88e5cf7e5eb45f2c19224e91e2f25
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1184
  $stmt->execute(array(':username' => '(^|,)'.preg_quote($username, '/').'($|,)'));
Open commit View diff
1184 $stmt->execute(array(':username' => '(^|,)'.preg_quote($username, '/').'($|,)'));
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1185
  $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1185 $run = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1186
  while ($row = array_shift($run)) {
Open commit View diff
1186 while ($row = array_shift($run)) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1187
    $data['is_catch_all'] = $row['address'];
Open commit View diff
1187 $data['is_catch_all'] = $row['address'];
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1188
  }
Open commit View diff
1188 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1189
  return $data;
Open commit View diff
1189 return $data;
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1190
}
Open commit View diff
1190 }
FreddleSpl0it 10 months ago a36485f

[Web] Allow wildcard subdomains for MTA-STS

Full commit hash
a36485f0f1fe7ac2599a7c49b3604282b0391d90
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1191
function is_valid_domain_name($domain_name, $options = array()) {
Open commit View diff
1191 function is_valid_domain_name($domain_name, $options = array()) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1192
  if (empty($domain_name)) {
Open commit View diff
1192 if (empty($domain_name)) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1193
    return false;
Open commit View diff
1193 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1194
  }
Open commit View diff
1194 }
FreddleSpl0it 10 months ago a36485f

[Web] Allow wildcard subdomains for MTA-STS

Full commit hash
a36485f0f1fe7ac2599a7c49b3604282b0391d90
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1195
Open commit View diff
1195
same change a36485f

[Web] Allow wildcard subdomains for MTA-STS

Full commit hash
a36485f0f1fe7ac2599a7c49b3604282b0391d90
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1196
  // Convert domain name to ASCII for validation
Open commit View diff
1196 // Convert domain name to ASCII for validation
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1197
  $domain_name = idn_to_ascii($domain_name, 0, INTL_IDNA_VARIANT_UTS46);
Open commit View diff
1197 $domain_name = idn_to_ascii($domain_name, 0, INTL_IDNA_VARIANT_UTS46);
FreddleSpl0it 10 months ago a36485f

[Web] Allow wildcard subdomains for MTA-STS

Full commit hash
a36485f0f1fe7ac2599a7c49b3604282b0391d90
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1198
Open commit View diff
1198
FreddleSpl0it 10 months ago ed4dcff

[Web] allow "*" as wildcard domain

Full commit hash
ed4dcff63b67366ca3974ec3b048bb2299d16c06
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1199
  if (isset($options['allow_wildcard']) && $options['allow_wildcard'] == true) {
Open commit View diff
1199 if (isset($options['allow_wildcard']) && $options['allow_wildcard'] == true) {
FreddleSpl0it 10 months ago 2898597

[Web] Revert - allow "*" as wildcard domain

Full commit hash
28985973eb746ea5486aa5377fd426ce7a5f5ab1
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1200
    // Remove '*.' if wildcard subdomains are allowed
Open commit View diff
1200 // Remove '*.' if wildcard subdomains are allowed
FreddleSpl0it 10 months ago ed4dcff

[Web] allow "*" as wildcard domain

Full commit hash
ed4dcff63b67366ca3974ec3b048bb2299d16c06
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1201
    if (strpos($domain_name, '*.') === 0) {
Open commit View diff
1201 if (strpos($domain_name, '*.') === 0) {
same change ed4dcff

[Web] allow "*" as wildcard domain

Full commit hash
ed4dcff63b67366ca3974ec3b048bb2299d16c06
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1202
      $domain_name = substr($domain_name, 2);
Open commit View diff
1202 $domain_name = substr($domain_name, 2);
same change ed4dcff

[Web] allow "*" as wildcard domain

Full commit hash
ed4dcff63b67366ca3974ec3b048bb2299d16c06
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1203
    }
Open commit View diff
1203 }
FreddleSpl0it 10 months ago a36485f

[Web] Allow wildcard subdomains for MTA-STS

Full commit hash
a36485f0f1fe7ac2599a7c49b3604282b0391d90
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1204
  }
Open commit View diff
1204 }
same change a36485f

[Web] Allow wildcard subdomains for MTA-STS

Full commit hash
a36485f0f1fe7ac2599a7c49b3604282b0391d90
Author
FreddleSpl0it <[email protected]>
Date
10 months ago
Selected line
1205
Open commit View diff
1205
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1206
  return (preg_match("/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i", $domain_name)
Open commit View diff
1206 return (preg_match("/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i", $domain_name)
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1207
       && preg_match("/^.{1,253}$/", $domain_name)
Open commit View diff
1207 && preg_match("/^.{1,253}$/", $domain_name)
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1208
       && preg_match("/^[^\.]{1,63}(\.[^\.]{1,63})*$/", $domain_name));
Open commit View diff
1208 && preg_match("/^[^\.]{1,63}(\.[^\.]{1,63})*$/", $domain_name));
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1209
}
Open commit View diff
1209 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1210
function set_tfa($_data) {
Open commit View diff
1210 function set_tfa($_data) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1211
  global $pdo;
Open commit View diff
1211 global $pdo;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1212
  global $yubi;
Open commit View diff
1212 global $yubi;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1213
  global $tfa;
Open commit View diff
1213 global $tfa;
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1214
  global $iam_settings;
Open commit View diff
1214 global $iam_settings;
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1215
Open commit View diff
1215
FreddleSpl0it over 4 years ago 0e4ddac

[WebAuthn] cleanup

Full commit hash
0e4ddacf92850dde4278b2fb73efaa2106323f07
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1216
  $_data_log = $_data;
Open commit View diff
1216 $_data_log = $_data;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1217
  !isset($_data_log['confirm_password']) ?: $_data_log['confirm_password'] = '*';
Open commit View diff
1217 !isset($_data_log['confirm_password']) ?: $_data_log['confirm_password'] = '*';
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1218
Open commit View diff
1218
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1219
  // skip password check if this is a forced TFA enrollment after login
Open commit View diff
1219 // skip password check if this is a forced TFA enrollment after login
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1220
  if (!empty($_SESSION['pending_tfa_setup'])) {
Open commit View diff
1220 if (!empty($_SESSION['pending_tfa_setup'])) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1221
    $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1221 $username = $_SESSION['mailcow_cc_username'];
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1222
    if (empty($username) || !isset($_SESSION['mailcow_cc_role'])) {
Open commit View diff
1222 if (empty($username) || !isset($_SESSION['mailcow_cc_role'])) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1223
      $_SESSION['return'][] = array('type' => 'danger', 'log' => array(__FUNCTION__, $_data_log), 'msg' => 'access_denied');
Open commit View diff
1223 $_SESSION['return'][] = array('type' => 'danger', 'log' => array(__FUNCTION__, $_data_log), 'msg' => 'access_denied');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1224
      return false;
Open commit View diff
1224 return false;
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1225
    }
Open commit View diff
1225 }
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1226
  } else {
Open commit View diff
1226 } else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1227
    $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1227 $username = $_SESSION['mailcow_cc_username'];
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1228
    $access_denied = null;
Open commit View diff
1228 $access_denied = null;
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1229
Open commit View diff
1229
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1230
    if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) $access_denied = true;
Open commit View diff
1230 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) $access_denied = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1231
Open commit View diff
1231
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1232
    // check admin password
Open commit View diff
1232 // check admin password
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1233
    if ($access_denied === null) {
Open commit View diff
1233 if ($access_denied === null) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1234
      $stmt = $pdo->prepare("SELECT `password` FROM `admin` WHERE `username` = :username");
Open commit View diff
1234 $stmt = $pdo->prepare("SELECT `password` FROM `admin` WHERE `username` = :username");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1235
      $stmt->execute(array(':username' => $username));
Open commit View diff
1235 $stmt->execute(array(':username' => $username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1236
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1236 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1237
      if ($row) {
Open commit View diff
1237 if ($row) {
FreddleSpl0it over 2 years ago 3a1dcb3

[Web] fix set_tfa for ldap users

Full commit hash
3a1dcb3aaf238ba741f08d40047f60e776aa41f2
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1238
        if (!verify_hash($row['password'], $_data["confirm_password"])) $access_denied = true;
Open commit View diff
1238 if (!verify_hash($row['password'], $_data["confirm_password"])) $access_denied = true;
same change 3a1dcb3

[Web] fix set_tfa for ldap users

Full commit hash
3a1dcb3aaf238ba741f08d40047f60e776aa41f2
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1239
        else $access_denied = false;
Open commit View diff
1239 else $access_denied = false;
same change 3a1dcb3

[Web] fix set_tfa for ldap users

Full commit hash
3a1dcb3aaf238ba741f08d40047f60e776aa41f2
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
1240
      }
Open commit View diff
1240 }
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1241
    }
Open commit View diff
1241 }
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1242
Open commit View diff
1242
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1243
    // check mailbox password
Open commit View diff
1243 // check mailbox password
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1244
    if ($access_denied === null) {
Open commit View diff
1244 if ($access_denied === null) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1245
      $stmt = $pdo->prepare("SELECT `password`, `authsource` FROM `mailbox` WHERE `username` = :username");
Open commit View diff
1245 $stmt = $pdo->prepare("SELECT `password`, `authsource` FROM `mailbox` WHERE `username` = :username");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1246
      $stmt->execute(array(':username' => $username));
Open commit View diff
1246 $stmt->execute(array(':username' => $username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1247
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1247 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1248
      if ($row) {
Open commit View diff
1248 if ($row) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1249
        if ($row['authsource'] == 'ldap'){
Open commit View diff
1249 if ($row['authsource'] == 'ldap'){
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1250
          if (!ldap_mbox_login($username, $_data["confirm_password"], $iam_settings)) $access_denied = true;
Open commit View diff
1250 if (!ldap_mbox_login($username, $_data["confirm_password"], $iam_settings)) $access_denied = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1251
          else $access_denied = false;
Open commit View diff
1251 else $access_denied = false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1252
        } else {
Open commit View diff
1252 } else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1253
          if (!verify_hash($row['password'], $_data["confirm_password"])) $access_denied = true;
Open commit View diff
1253 if (!verify_hash($row['password'], $_data["confirm_password"])) $access_denied = true;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1254
          else $access_denied = false;
Open commit View diff
1254 else $access_denied = false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1255
        }
Open commit View diff
1255 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1256
      }
Open commit View diff
1256 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1257
    }
Open commit View diff
1257 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1258
Open commit View diff
1258
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1259
    if ($access_denied) {
Open commit View diff
1259 if ($access_denied) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1260
      $_SESSION['return'][] = array('type' => 'danger', 'log' => array(__FUNCTION__, $_data_log), 'msg' => 'access_denied');
Open commit View diff
1260 $_SESSION['return'][] = array('type' => 'danger', 'log' => array(__FUNCTION__, $_data_log), 'msg' => 'access_denied');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1261
      return false;
Open commit View diff
1261 return false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1262
    }
Open commit View diff
1262 }
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1263
  }
Open commit View diff
1263 }
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1264
Open commit View diff
1264
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1265
  switch ($_data["tfa_method"]) {
Open commit View diff
1265 switch ($_data["tfa_method"]) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1266
    case "yubi_otp":
Open commit View diff
1266 case "yubi_otp":
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1267
      $key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
Open commit View diff
1267 $key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1268
      $yubico_id = $_data['yubico_id'];
Open commit View diff
1268 $yubico_id = $_data['yubico_id'];
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1269
      $yubico_key = $_data['yubico_key'];
Open commit View diff
1269 $yubico_key = $_data['yubico_key'];
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1270
      $yubi = new Auth_Yubico($yubico_id, $yubico_key);
Open commit View diff
1270 $yubi = new Auth_Yubico($yubico_id, $yubico_key);
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1271
      if (!$yubi) {
Open commit View diff
1271 if (!$yubi) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1272
        $_SESSION['return'][] =  array(
Open commit View diff
1272 $_SESSION['return'][] = array(
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1273
          'type' => 'danger',
Open commit View diff
1273 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1274
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1274 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1275
          'msg' => 'access_denied'
Open commit View diff
1275 'msg' => 'access_denied'
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1276
        );
Open commit View diff
1276 );
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1277
        return false;
Open commit View diff
1277 return false;
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1278
      }
Open commit View diff
1278 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1279
      if (!ctype_alnum($_data["otp_token"]) || strlen($_data["otp_token"]) != 44) {
Open commit View diff
1279 if (!ctype_alnum($_data["otp_token"]) || strlen($_data["otp_token"]) != 44) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1280
        $_SESSION['return'][] =  array(
Open commit View diff
1280 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1281
          'type' => 'danger',
Open commit View diff
1281 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1282
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1282 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1283
          'msg' => 'tfa_token_invalid'
Open commit View diff
1283 'msg' => 'tfa_token_invalid'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1284
        );
Open commit View diff
1284 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1285
        return false;
Open commit View diff
1285 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1286
      }
Open commit View diff
1286 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1287
      $yauth = $yubi->verify($_data["otp_token"]);
Open commit View diff
1287 $yauth = $yubi->verify($_data["otp_token"]);
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1288
      if (PEAR::isError($yauth)) {
Open commit View diff
1288 if (PEAR::isError($yauth)) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1289
        $_SESSION['return'][] =  array(
Open commit View diff
1289 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1290
          'type' => 'danger',
Open commit View diff
1290 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1291
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1291 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1292
          'msg' => array('yotp_verification_failed', $yauth->getMessage())
Open commit View diff
1292 'msg' => array('yotp_verification_failed', $yauth->getMessage())
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1293
        );
Open commit View diff
1293 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1294
        return false;
Open commit View diff
1294 return false;
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1295
      }
Open commit View diff
1295 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1296
      try {
Open commit View diff
1296 try {
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1297
        // We could also do a modhex translation here
Open commit View diff
1297 // We could also do a modhex translation here
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1298
        $yubico_modhex_id = substr($_data["otp_token"], 0, 12);
Open commit View diff
1298 $yubico_modhex_id = substr($_data["otp_token"], 0, 12);
Miro Rauhala about 6 years ago 6bff958

[Web] Clean PHP code by removing unused variables (#3646)

Full commit hash
6bff958ab4381f27aba5464bce80290015d4458a
Author
Miro Rauhala <[email protected]>
Date
about 6 years ago
Selected line
1299
        $stmt = $pdo->prepare("DELETE FROM `tfa`
Open commit View diff
1299 $stmt = $pdo->prepare("DELETE FROM `tfa`
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1300
          WHERE `username` = :username
Open commit View diff
1300 WHERE `username` = :username
FreddleSpl0it about 4 years ago cd02483

prevent auth wipe out at yubi otp registration

Full commit hash
cd02483b19f25dcce08fc09cee775cab66d6a5e0
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
1301
            AND (`authmech` = 'yubi_otp' AND `secret` LIKE :modhex)");
Open commit View diff
1301 AND (`authmech` = 'yubi_otp' AND `secret` LIKE :modhex)");
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1302
        $stmt->execute(array(':username' => $username, ':modhex' => '%' . $yubico_modhex_id));
Open commit View diff
1302 $stmt->execute(array(':username' => $username, ':modhex' => '%' . $yubico_modhex_id));
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1303
        $stmt = $pdo->prepare("INSERT INTO `tfa` (`key_id`, `username`, `authmech`, `active`, `secret`) VALUES
Open commit View diff
1303 $stmt = $pdo->prepare("INSERT INTO `tfa` (`key_id`, `username`, `authmech`, `active`, `secret`) VALUES
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1304
          (:key_id, :username, 'yubi_otp', '1', :secret)");
Open commit View diff
1304 (:key_id, :username, 'yubi_otp', '1', :secret)");
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1305
        $stmt->execute(array(':key_id' => $key_id, ':username' => $username, ':secret' => $yubico_id . ':' . $yubico_key . ':' . $yubico_modhex_id));
Open commit View diff
1305 $stmt->execute(array(':key_id' => $key_id, ':username' => $username, ':secret' => $yubico_id . ':' . $yubico_key . ':' . $yubico_modhex_id));
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1306
      }
Open commit View diff
1306 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1307
      catch (PDOException $e) {
Open commit View diff
1307 catch (PDOException $e) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1308
        $_SESSION['return'][] =  array(
Open commit View diff
1308 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1309
          'type' => 'danger',
Open commit View diff
1309 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1310
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1310 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1311
          'msg' => array('mysql_error', $e)
Open commit View diff
1311 'msg' => array('mysql_error', $e)
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1312
        );
Open commit View diff
1312 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1313
        return false;
Open commit View diff
1313 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1314
      }
Open commit View diff
1314 }
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1315
      unset($_SESSION['pending_tfa_setup']);
Open commit View diff
1315 unset($_SESSION['pending_tfa_setup']);
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1316
      $_SESSION['return'][] =  array(
Open commit View diff
1316 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1317
        'type' => 'success',
Open commit View diff
1317 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1318
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1318 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1319
        'msg' => array('object_modified', htmlspecialchars($username))
Open commit View diff
1319 'msg' => array('object_modified', htmlspecialchars($username))
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1320
      );
Open commit View diff
1320 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1321
    break;
Open commit View diff
1321 break;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1322
    case "totp":
Open commit View diff
1322 case "totp":
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1323
      $key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
Open commit View diff
1323 $key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1324
      if ($tfa->verifyCode($_POST['totp_secret'], $_POST['totp_confirm_token']) === true) {
Open commit View diff
1324 if ($tfa->verifyCode($_POST['totp_secret'], $_POST['totp_confirm_token']) === true) {
andryyy over 4 years ago 8769a91

[Web] Allow multiple TOTP

Full commit hash
8769a91388dc242031dc1edce0731e638b54fe6b
Author
andryyy <[email protected]>
Date
over 4 years ago
Selected line
1325
        //$stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `username` = :username");
Open commit View diff
1325 //$stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `username` = :username");
same change 8769a91

[Web] Allow multiple TOTP

Full commit hash
8769a91388dc242031dc1edce0731e638b54fe6b
Author
andryyy <[email protected]>
Date
over 4 years ago
Selected line
1326
        //$stmt->execute(array(':username' => $username));
Open commit View diff
1326 //$stmt->execute(array(':username' => $username));
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1327
        $stmt = $pdo->prepare("INSERT INTO `tfa` (`username`, `key_id`, `authmech`, `secret`, `active`) VALUES (?, ?, 'totp', ?, '1')");
Open commit View diff
1327 $stmt = $pdo->prepare("INSERT INTO `tfa` (`username`, `key_id`, `authmech`, `secret`, `active`) VALUES (?, ?, 'totp', ?, '1')");
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1328
        $stmt->execute(array($username, $key_id, $_POST['totp_secret']));
Open commit View diff
1328 $stmt->execute(array($username, $key_id, $_POST['totp_secret']));
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1329
        unset($_SESSION['pending_tfa_setup']);
Open commit View diff
1329 unset($_SESSION['pending_tfa_setup']);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1330
        $_SESSION['return'][] =  array(
Open commit View diff
1330 $_SESSION['return'][] = array(
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1331
          'type' => 'success',
Open commit View diff
1331 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1332
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1332 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1333
          'msg' => array('object_modified', $username)
Open commit View diff
1333 'msg' => array('object_modified', $username)
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1334
        );
Open commit View diff
1334 );
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1335
      }
Open commit View diff
1335 }
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1336
      else {
Open commit View diff
1336 else {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1337
        $_SESSION['return'][] =  array(
Open commit View diff
1337 $_SESSION['return'][] = array(
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1338
          'type' => 'danger',
Open commit View diff
1338 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1339
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1339 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1340
          'msg' => 'totp_verification_failed'
Open commit View diff
1340 'msg' => 'totp_verification_failed'
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1341
        );
Open commit View diff
1341 );
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1342
      }
Open commit View diff
1342 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1343
    break;
Open commit View diff
1343 break;
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1344
    case "webauthn":
Open commit View diff
1344 case "webauthn":
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1345
        $key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
Open commit View diff
1345 $key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1346
Open commit View diff
1346
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1347
        $stmt = $pdo->prepare("INSERT INTO `tfa` (`username`, `key_id`, `authmech`, `keyHandle`, `publicKey`, `certificate`, `counter`, `active`)
Open commit View diff
1347 $stmt = $pdo->prepare("INSERT INTO `tfa` (`username`, `key_id`, `authmech`, `keyHandle`, `publicKey`, `certificate`, `counter`, `active`)
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1348
        VALUES (?, ?, 'webauthn', ?, ?, ?, ?, '1')");
Open commit View diff
1348 VALUES (?, ?, 'webauthn', ?, ?, ?, ?, '1')");
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1349
        $stmt->execute(array(
Open commit View diff
1349 $stmt->execute(array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1350
            $username,
Open commit View diff
1350 $username,
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1351
            $key_id,
Open commit View diff
1351 $key_id,
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1352
            base64_encode($_data['registration']->credentialId),
Open commit View diff
1352 base64_encode($_data['registration']->credentialId),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1353
            $_data['registration']->credentialPublicKey,
Open commit View diff
1353 $_data['registration']->credentialPublicKey,
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1354
            $_data['registration']->certificate,
Open commit View diff
1354 $_data['registration']->certificate,
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1355
            0
Open commit View diff
1355 0
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1356
        ));
Open commit View diff
1356 ));
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1357
Open commit View diff
1357
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1358
        unset($_SESSION['pending_tfa_setup']);
Open commit View diff
1358 unset($_SESSION['pending_tfa_setup']);
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1359
        $_SESSION['return'][] =  array(
Open commit View diff
1359 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1360
            'type' => 'success',
Open commit View diff
1360 'type' => 'success',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1361
            'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1361 'log' => array(__FUNCTION__, $_data_log),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1362
            'msg' => array('object_modified', $username)
Open commit View diff
1362 'msg' => array('object_modified', $username)
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1363
        );
Open commit View diff
1363 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1364
    break;
Open commit View diff
1364 break;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1365
    case "none":
Open commit View diff
1365 case "none":
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1366
      // Block TFA removal if force_tfa policy is active
Open commit View diff
1366 // Block TFA removal if force_tfa policy is active
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1367
      $is_forced_tfa = false;
Open commit View diff
1367 $is_forced_tfa = false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1368
      if ($_SESSION['mailcow_cc_role'] === 'user') {
Open commit View diff
1368 if ($_SESSION['mailcow_cc_role'] === 'user') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1369
        $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
Open commit View diff
1369 $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1370
        $stmt_check->execute(array($username));
Open commit View diff
1370 $stmt_check->execute(array($username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1371
        $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
Open commit View diff
1371 $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1372
      } else {
Open commit View diff
1372 } else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1373
        $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
Open commit View diff
1373 $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1374
        $stmt_check->execute(array($username));
Open commit View diff
1374 $stmt_check->execute(array($username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1375
        $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
Open commit View diff
1375 $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1376
      }
Open commit View diff
1376 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1377
      if ($is_forced_tfa) {
Open commit View diff
1377 if ($is_forced_tfa) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1378
        $_SESSION['return'][] =  array(
Open commit View diff
1378 $_SESSION['return'][] = array(
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1379
          'type' => 'danger',
Open commit View diff
1379 'type' => 'danger',
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1380
          'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1380 'log' => array(__FUNCTION__, $_data_log),
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1381
          'msg' => 'tfa_removal_blocked'
Open commit View diff
1381 'msg' => 'tfa_removal_blocked'
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1382
        );
Open commit View diff
1382 );
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1383
        return false;
Open commit View diff
1383 return false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1384
      }
Open commit View diff
1384 }
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1385
      $stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `username` = :username");
Open commit View diff
1385 $stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `username` = :username");
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1386
      $stmt->execute(array(':username' => $username));
Open commit View diff
1386 $stmt->execute(array(':username' => $username));
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1387
      $_SESSION['return'][] =  array(
Open commit View diff
1387 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1388
        'type' => 'success',
Open commit View diff
1388 'type' => 'success',
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1389
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1389 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1390
        'msg' => array('object_modified', htmlspecialchars($username))
Open commit View diff
1390 'msg' => array('object_modified', htmlspecialchars($username))
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1391
      );
Open commit View diff
1391 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1392
    break;
Open commit View diff
1392 break;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1393
  }
Open commit View diff
1393 }
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1394
}
Open commit View diff
1394 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1395
function fido2($_data) {
Open commit View diff
1395 function fido2($_data) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1396
  global $pdo;
Open commit View diff
1396 global $pdo;
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1397
  global $WebAuthn;
Open commit View diff
1397 global $WebAuthn;
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1398
  $_data_log = $_data;
Open commit View diff
1398 $_data_log = $_data;
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1399
  // Not logging registration data, only actions
Open commit View diff
1399 // Not logging registration data, only actions
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1400
  // Silent errors for "get" requests
Open commit View diff
1400 // Silent errors for "get" requests
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1401
  switch ($_data["action"]) {
Open commit View diff
1401 switch ($_data["action"]) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1402
    case "register":
Open commit View diff
1402 case "register":
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1403
      $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1403 $username = $_SESSION['mailcow_cc_username'];
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1404
      if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
Open commit View diff
1404 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1405
          $_SESSION['return'][] =  array(
Open commit View diff
1405 $_SESSION['return'][] = array(
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1406
            'type' => 'danger',
Open commit View diff
1406 'type' => 'danger',
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1407
            'log' => array(__FUNCTION__, $_data["action"]),
Open commit View diff
1407 'log' => array(__FUNCTION__, $_data["action"]),
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1408
            'msg' => 'access_denied'
Open commit View diff
1408 'msg' => 'access_denied'
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1409
          );
Open commit View diff
1409 );
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1410
          return false;
Open commit View diff
1410 return false;
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1411
      }
Open commit View diff
1411 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1412
      $stmt = $pdo->prepare("INSERT INTO `fido2` (`username`, `rpId`, `credentialPublicKey`, `certificateChain`, `certificate`, `certificateIssuer`, `certificateSubject`, `signatureCounter`, `AAGUID`, `credentialId`)
Open commit View diff
1412 $stmt = $pdo->prepare("INSERT INTO `fido2` (`username`, `rpId`, `credentialPublicKey`, `certificateChain`, `certificate`, `certificateIssuer`, `certificateSubject`, `signatureCounter`, `AAGUID`, `credentialId`)
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1413
      VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
Open commit View diff
1413 VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1414
      $stmt->execute(array(
Open commit View diff
1414 $stmt->execute(array(
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1415
        $username,
Open commit View diff
1415 $username,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1416
        $_data['registration']->rpId,
Open commit View diff
1416 $_data['registration']->rpId,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1417
        $_data['registration']->credentialPublicKey,
Open commit View diff
1417 $_data['registration']->credentialPublicKey,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1418
        $_data['registration']->certificateChain,
Open commit View diff
1418 $_data['registration']->certificateChain,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1419
        $_data['registration']->certificate,
Open commit View diff
1419 $_data['registration']->certificate,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1420
        $_data['registration']->certificateIssuer,
Open commit View diff
1420 $_data['registration']->certificateIssuer,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1421
        $_data['registration']->certificateSubject,
Open commit View diff
1421 $_data['registration']->certificateSubject,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1422
        $_data['registration']->signatureCounter,
Open commit View diff
1422 $_data['registration']->signatureCounter,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1423
        $_data['registration']->AAGUID,
Open commit View diff
1423 $_data['registration']->AAGUID,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1424
        $_data['registration']->credentialId)
Open commit View diff
1424 $_data['registration']->credentialId)
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1425
      );
Open commit View diff
1425 );
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1426
      $_SESSION['return'][] =  array(
Open commit View diff
1426 $_SESSION['return'][] = array(
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1427
        'type' => 'success',
Open commit View diff
1427 'type' => 'success',
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1428
        'log' => array(__FUNCTION__, $_data["action"]),
Open commit View diff
1428 'log' => array(__FUNCTION__, $_data["action"]),
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1429
        'msg' => array('object_modified', $username)
Open commit View diff
1429 'msg' => array('object_modified', $username)
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1430
      );
Open commit View diff
1430 );
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1431
    break;
Open commit View diff
1431 break;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1432
    case "get_user_cids":
Open commit View diff
1432 case "get_user_cids":
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1433
      // Used to exclude existing CredentialIds while registering
Open commit View diff
1433 // Used to exclude existing CredentialIds while registering
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1434
      $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1434 $username = $_SESSION['mailcow_cc_username'];
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1435
      if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
Open commit View diff
1435 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1436
        return false;
Open commit View diff
1436 return false;
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1437
      }
Open commit View diff
1437 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1438
      $stmt = $pdo->prepare("SELECT `credentialId` FROM `fido2` WHERE `username` = :username");
Open commit View diff
1438 $stmt = $pdo->prepare("SELECT `credentialId` FROM `fido2` WHERE `username` = :username");
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1439
      $stmt->execute(array(':username' => $username));
Open commit View diff
1439 $stmt->execute(array(':username' => $username));
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1440
      $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1440 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1441
      while($row = array_shift($rows)) {
Open commit View diff
1441 while($row = array_shift($rows)) {
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1442
        $cids[] = $row['credentialId'];
Open commit View diff
1442 $cids[] = $row['credentialId'];
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1443
      }
Open commit View diff
1443 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1444
      return $cids;
Open commit View diff
1444 return $cids;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1445
    break;
Open commit View diff
1445 break;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1446
    case "get_all_cids":
Open commit View diff
1446 case "get_all_cids":
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1447
      // Only needed when using fido2 with username
Open commit View diff
1447 // Only needed when using fido2 with username
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1448
      $stmt = $pdo->query("SELECT `credentialId` FROM `fido2`");
Open commit View diff
1448 $stmt = $pdo->query("SELECT `credentialId` FROM `fido2`");
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1449
      $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1449 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1450
      while($row = array_shift($rows)) {
Open commit View diff
1450 while($row = array_shift($rows)) {
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1451
        $cids[] = $row['credentialId'];
Open commit View diff
1451 $cids[] = $row['credentialId'];
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1452
      }
Open commit View diff
1452 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1453
      return $cids;
Open commit View diff
1453 return $cids;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1454
    break;
Open commit View diff
1454 break;
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1455
    case "get_by_b64cid":
Open commit View diff
1455 case "get_by_b64cid":
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1456
      if (!isset($_data['cid']) || empty($_data['cid'])) {
Open commit View diff
1456 if (!isset($_data['cid']) || empty($_data['cid'])) {
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1457
        return false;
Open commit View diff
1457 return false;
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1458
      }
Open commit View diff
1458 }
FreddleSpl0it over 4 years ago 5712192

[WebAuthn] fix error on android

Full commit hash
5712192bcb1ace15804dc6826e72b211fa618cf1
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1459
      $stmt = $pdo->prepare("SELECT `certificateSubject`, `username`, `credentialPublicKey`, SHA2(`credentialId`, 256) AS `cid` FROM `fido2` WHERE `credentialId` = :cid");
Open commit View diff
1459 $stmt = $pdo->prepare("SELECT `certificateSubject`, `username`, `credentialPublicKey`, SHA2(`credentialId`, 256) AS `cid` FROM `fido2` WHERE `credentialId` = :cid");
same change 5712192

[WebAuthn] fix error on android

Full commit hash
5712192bcb1ace15804dc6826e72b211fa618cf1
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1460
      $stmt->execute(array(':cid' => base64_decode($_data['cid'])));
Open commit View diff
1460 $stmt->execute(array(':cid' => base64_decode($_data['cid'])));
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1461
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1461 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1462
      if (empty($row) || empty($row['credentialPublicKey']) || empty($row['username'])) {
Open commit View diff
1462 if (empty($row) || empty($row['credentialPublicKey']) || empty($row['username'])) {
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1463
        return false;
Open commit View diff
1463 return false;
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1464
      }
Open commit View diff
1464 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1465
      $data['pub_key'] = $row['credentialPublicKey'];
Open commit View diff
1465 $data['pub_key'] = $row['credentialPublicKey'];
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1466
      $data['username'] = $row['username'];
Open commit View diff
1466 $data['username'] = $row['username'];
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1467
      $data['subject'] = $row['certificateSubject'];
Open commit View diff
1467 $data['subject'] = $row['certificateSubject'];
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1468
      $data['cid'] = $row['cid'];
Open commit View diff
1468 $data['cid'] = $row['cid'];
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1469
      return $data;
Open commit View diff
1469 return $data;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1470
    break;
Open commit View diff
1470 break;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1471
    case "get_friendly_names":
Open commit View diff
1471 case "get_friendly_names":
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1472
      $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1472 $username = $_SESSION['mailcow_cc_username'];
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1473
      if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
Open commit View diff
1473 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1474
        return false;
Open commit View diff
1474 return false;
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1475
      }
Open commit View diff
1475 }
andryyy over 5 years ago 8d05d4a

[Web] Cleanup Rspamd, other fixes

Full commit hash
8d05d4a51d8fb80dd5328c8137bbe34386b45b61
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1476
      $stmt = $pdo->prepare("SELECT SHA2(`credentialId`, 256) AS `cid`, `created`, `certificateSubject`, `friendlyName` FROM `fido2` WHERE `username` = :username");
Open commit View diff
1476 $stmt = $pdo->prepare("SELECT SHA2(`credentialId`, 256) AS `cid`, `created`, `certificateSubject`, `friendlyName` FROM `fido2` WHERE `username` = :username");
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1477
      $stmt->execute(array(':username' => $username));
Open commit View diff
1477 $stmt->execute(array(':username' => $username));
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1478
      $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1478 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1479
      while($row = array_shift($rows)) {
Open commit View diff
1479 while($row = array_shift($rows)) {
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1480
        $fns[] = array(
Open commit View diff
1480 $fns[] = array(
andryyy over 5 years ago 8d05d4a

[Web] Cleanup Rspamd, other fixes

Full commit hash
8d05d4a51d8fb80dd5328c8137bbe34386b45b61
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1481
          "subject" => (empty($row['certificateSubject']) ? 'Unknown (' . $row['created'] . ')' : $row['certificateSubject']),
Open commit View diff
1481 "subject" => (empty($row['certificateSubject']) ? 'Unknown (' . $row['created'] . ')' : $row['certificateSubject']),
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1482
          "fn" => $row['friendlyName'],
Open commit View diff
1482 "fn" => $row['friendlyName'],
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1483
          "cid" => $row['cid']
Open commit View diff
1483 "cid" => $row['cid']
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1484
        );
Open commit View diff
1484 );
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1485
      }
Open commit View diff
1485 }
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1486
      return $fns;
Open commit View diff
1486 return $fns;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1487
    break;
Open commit View diff
1487 break;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1488
    case "unset_fido2_key":
Open commit View diff
1488 case "unset_fido2_key":
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1489
      $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1489 $username = $_SESSION['mailcow_cc_username'];
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1490
      if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
Open commit View diff
1490 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1491
        $_SESSION['return'][] =  array(
Open commit View diff
1491 $_SESSION['return'][] = array(
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1492
          'type' => 'danger',
Open commit View diff
1492 'type' => 'danger',
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1493
          'log' => array(__FUNCTION__, $_data["action"]),
Open commit View diff
1493 'log' => array(__FUNCTION__, $_data["action"]),
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1494
          'msg' => 'access_denied'
Open commit View diff
1494 'msg' => 'access_denied'
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1495
        );
Open commit View diff
1495 );
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1496
        return false;
Open commit View diff
1496 return false;
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1497
      }
Open commit View diff
1497 }
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1498
      $stmt = $pdo->prepare("DELETE FROM `fido2` WHERE `username` = :username AND SHA2(`credentialId`, 256) = :cid");
Open commit View diff
1498 $stmt = $pdo->prepare("DELETE FROM `fido2` WHERE `username` = :username AND SHA2(`credentialId`, 256) = :cid");
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1499
      $stmt->execute(array(
Open commit View diff
1499 $stmt->execute(array(
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1500
        ':username' => $username,
Open commit View diff
1500 ':username' => $username,
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1501
        ':cid' => $_data['post_data']['unset_fido2_key']
Open commit View diff
1501 ':cid' => $_data['post_data']['unset_fido2_key']
same change 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1502
      ));
Open commit View diff
1502 ));
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1503
      $_SESSION['return'][] =  array(
Open commit View diff
1503 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1504
        'type' => 'success',
Open commit View diff
1504 'type' => 'success',
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1505
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1505 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1506
        'msg' => array('object_modified', htmlspecialchars($username))
Open commit View diff
1506 'msg' => array('object_modified', htmlspecialchars($username))
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1507
      );
Open commit View diff
1507 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1508
    break;
Open commit View diff
1508 break;
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1509
    case "edit_fn":
Open commit View diff
1509 case "edit_fn":
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1510
      $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1510 $username = $_SESSION['mailcow_cc_username'];
andryyy about 5 years ago d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1511
      if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
Open commit View diff
1511 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) {
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1512
        $_SESSION['return'][] =  array(
Open commit View diff
1512 $_SESSION['return'][] = array(
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1513
          'type' => 'danger',
Open commit View diff
1513 'type' => 'danger',
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1514
          'log' => array(__FUNCTION__, $_data["action"]),
Open commit View diff
1514 'log' => array(__FUNCTION__, $_data["action"]),
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1515
          'msg' => 'access_denied'
Open commit View diff
1515 'msg' => 'access_denied'
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1516
        );
Open commit View diff
1516 );
same change d156a93

[Web] Various fixes; Allow users to login with FIDO2, SOGo SSO is a wip

Full commit hash
d156a93a8415b0f488cee831a00387ffdf69b20f
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1517
        return false;
Open commit View diff
1517 return false;
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1518
      }
Open commit View diff
1518 }
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1519
      $stmt = $pdo->prepare("UPDATE `fido2` SET `friendlyName` = :friendlyName WHERE SHA2(`credentialId`, 256) = :cid AND `username` = :username");
Open commit View diff
1519 $stmt = $pdo->prepare("UPDATE `fido2` SET `friendlyName` = :friendlyName WHERE SHA2(`credentialId`, 256) = :cid AND `username` = :username");
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1520
      $stmt->execute(array(
Open commit View diff
1520 $stmt->execute(array(
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1521
        ':username' => $username,
Open commit View diff
1521 ':username' => $username,
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1522
        ':friendlyName' => $_data['fido2_attrs']['fido2_fn'],
Open commit View diff
1522 ':friendlyName' => $_data['fido2_attrs']['fido2_fn'],
andryyy over 5 years ago 4a355f2

[Web] Some fido2 fixes, table view for fido2 keys, fix renaming keys with the same subject

Full commit hash
4a355f242f4b80e9230bb65d13275932833bf569
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1523
        ':cid' => $_data['fido2_attrs']['fido2_cid']
Open commit View diff
1523 ':cid' => $_data['fido2_attrs']['fido2_cid']
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1524
      ));
Open commit View diff
1524 ));
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1525
      $_SESSION['return'][] =  array(
Open commit View diff
1525 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1526
        'type' => 'success',
Open commit View diff
1526 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1527
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1527 'log' => array(__FUNCTION__, $_data_log),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1528
        'msg' => array('object_modified', htmlspecialchars($username))
Open commit View diff
1528 'msg' => array('object_modified', htmlspecialchars($username))
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1529
      );
Open commit View diff
1529 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1530
    break;
Open commit View diff
1530 break;
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1531
    case "verify":
Open commit View diff
1531 case "verify":
FreddleSpl0it over 1 year ago fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1532
      $role = "";
Open commit View diff
1532 $role = "";
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1533
      $tokenData = json_decode($_data['token']);
Open commit View diff
1533 $tokenData = json_decode($_data['token']);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1534
      $clientDataJSON = base64_decode($tokenData->clientDataJSON);
Open commit View diff
1534 $clientDataJSON = base64_decode($tokenData->clientDataJSON);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1535
      $authenticatorData = base64_decode($tokenData->authenticatorData);
Open commit View diff
1535 $authenticatorData = base64_decode($tokenData->authenticatorData);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1536
      $signature = base64_decode($tokenData->signature);
Open commit View diff
1536 $signature = base64_decode($tokenData->signature);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1537
      $id = base64_decode($tokenData->id);
Open commit View diff
1537 $id = base64_decode($tokenData->id);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1538
      $challenge = $_SESSION['challenge'];
Open commit View diff
1538 $challenge = $_SESSION['challenge'];
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1539
      $process_fido2 = fido2(array("action" => "get_by_b64cid", "cid" => $tokenData->id));
Open commit View diff
1539 $process_fido2 = fido2(array("action" => "get_by_b64cid", "cid" => $tokenData->id));
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1540
      if ($process_fido2['pub_key'] === false) {
Open commit View diff
1540 if ($process_fido2['pub_key'] === false) {
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1541
        $_SESSION['return'][] =  array(
Open commit View diff
1541 $_SESSION['return'][] = array(
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1542
          'type' => 'danger',
Open commit View diff
1542 'type' => 'danger',
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1543
          'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
Open commit View diff
1543 'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1544
          'msg' => "login_failed"
Open commit View diff
1544 'msg' => "login_failed"
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1545
        );
Open commit View diff
1545 );
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1546
        return false;
Open commit View diff
1546 return false;
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1547
      }
Open commit View diff
1547 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1548
      try {
Open commit View diff
1548 try {
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1549
        $WebAuthn->processGet($clientDataJSON, $authenticatorData, $signature, $process_fido2['pub_key'], $challenge, null, $GLOBALS['FIDO2_UV_FLAG_LOGIN'], $GLOBALS['FIDO2_USER_PRESENT_FLAG']);
Open commit View diff
1549 $WebAuthn->processGet($clientDataJSON, $authenticatorData, $signature, $process_fido2['pub_key'], $challenge, null, $GLOBALS['FIDO2_UV_FLAG_LOGIN'], $GLOBALS['FIDO2_USER_PRESENT_FLAG']);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1550
      }
Open commit View diff
1550 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1551
      catch (Throwable $ex) {
Open commit View diff
1551 catch (Throwable $ex) {
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1552
        unset($process_fido2);
Open commit View diff
1552 unset($process_fido2);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1553
        $_SESSION['return'][] =  array(
Open commit View diff
1553 $_SESSION['return'][] = array(
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1554
          'type' => 'danger',
Open commit View diff
1554 'type' => 'danger',
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1555
          'log' => array("fido2_login", $_data['user'], $process_fido2['username'], $ex->getMessage()),
Open commit View diff
1555 'log' => array("fido2_login", $_data['user'], $process_fido2['username'], $ex->getMessage()),
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1556
          'msg' => "login_failed"
Open commit View diff
1556 'msg' => "login_failed"
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1557
        );
Open commit View diff
1557 );
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1558
        return false;
Open commit View diff
1558 return false;
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1559
      }
Open commit View diff
1559 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1560
      $return = new stdClass();
Open commit View diff
1560 $return = new stdClass();
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1561
      $return->success = true;
Open commit View diff
1561 $return->success = true;
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1562
      $stmt = $pdo->prepare("SELECT `superadmin` FROM `admin` WHERE `username` = :username");
Open commit View diff
1562 $stmt = $pdo->prepare("SELECT `superadmin` FROM `admin` WHERE `username` = :username");
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1563
      $stmt->execute(array(':username' => $process_fido2['username']));
Open commit View diff
1563 $stmt->execute(array(':username' => $process_fido2['username']));
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1564
      $obj_props = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1564 $obj_props = $stmt->fetch(PDO::FETCH_ASSOC);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1565
      if ($obj_props['superadmin'] === 1 && (!$_data['user'] || $_data['user'] == "admin")) {
Open commit View diff
1565 if ($obj_props['superadmin'] === 1 && (!$_data['user'] || $_data['user'] == "admin")) {
FreddleSpl0it over 1 year ago fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1566
        $role = "admin";
Open commit View diff
1566 $role = "admin";
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1567
      }
Open commit View diff
1567 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1568
      elseif ($obj_props['superadmin'] === 0 && (!$_data['user'] || $_data['user'] == "domainadmin")) {
Open commit View diff
1568 elseif ($obj_props['superadmin'] === 0 && (!$_data['user'] || $_data['user'] == "domainadmin")) {
FreddleSpl0it over 1 year ago fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1569
        $role = "domainadmin";
Open commit View diff
1569 $role = "domainadmin";
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1570
      }
Open commit View diff
1570 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1571
      elseif (!isset($obj_props['superadmin']) && (!$_data['user'] || $_data['user'] == "user")) {
Open commit View diff
1571 elseif (!isset($obj_props['superadmin']) && (!$_data['user'] || $_data['user'] == "user")) {
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1572
        $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :username");
Open commit View diff
1572 $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :username");
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1573
        $stmt->execute(array(':username' => $process_fido2['username']));
Open commit View diff
1573 $stmt->execute(array(':username' => $process_fido2['username']));
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1574
        $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1574 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1575
        if ($row['username'] == $process_fido2['username']) {
Open commit View diff
1575 if ($row['username'] == $process_fido2['username']) {
FreddleSpl0it over 1 year ago fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1576
          $role = "user";
Open commit View diff
1576 $role = "user";
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1577
        }
Open commit View diff
1577 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1578
      }
Open commit View diff
1578 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1579
      else {
Open commit View diff
1579 else {
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1580
        $_SESSION['return'][] =  array(
Open commit View diff
1580 $_SESSION['return'][] = array(
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1581
          'type' => 'danger',
Open commit View diff
1581 'type' => 'danger',
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1582
          'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
Open commit View diff
1582 'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1583
          'msg' => 'login_failed'
Open commit View diff
1583 'msg' => 'login_failed'
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1584
        );
Open commit View diff
1584 );
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1585
        return false;
Open commit View diff
1585 return false;
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1586
      }
Open commit View diff
1586 }
FreddleSpl0it over 1 year ago fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1587
      if (empty($role)) {
Open commit View diff
1587 if (empty($role)) {
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1588
        session_unset();
Open commit View diff
1588 session_unset();
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1589
        session_destroy();
Open commit View diff
1589 session_destroy();
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1590
        $_SESSION['return'][] =  array(
Open commit View diff
1590 $_SESSION['return'][] = array(
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1591
          'type' => 'danger',
Open commit View diff
1591 'type' => 'danger',
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1592
          'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
Open commit View diff
1592 'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1593
          'msg' => 'login_failed'
Open commit View diff
1593 'msg' => 'login_failed'
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1594
        );
Open commit View diff
1594 );
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1595
        return false;
Open commit View diff
1595 return false;
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1596
      }
Open commit View diff
1596 }
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1597
      unset($_SESSION["challenge"]);
Open commit View diff
1597 unset($_SESSION["challenge"]);
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1598
      $_SESSION['return'][] =  array(
Open commit View diff
1598 $_SESSION['return'][] = array(
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1599
        'type' => 'success',
Open commit View diff
1599 'type' => 'success',
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1600
        'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
Open commit View diff
1600 'log' => array("fido2_login", $_data['user'], $process_fido2['username']),
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1601
        'msg' => array('logged_in_as', $process_fido2['username'])
Open commit View diff
1601 'msg' => array('logged_in_as', $process_fido2['username'])
same change bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1602
      );
Open commit View diff
1602 );
FreddleSpl0it over 1 year ago fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1603
      return array(
Open commit View diff
1603 return array(
same change fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1604
        "role" => $role,
Open commit View diff
1604 "role" => $role,
same change fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1605
        "username" => $process_fido2['username'],
Open commit View diff
1605 "username" => $process_fido2['username'],
same change fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1606
        "cid" => $process_fido2['cid']
Open commit View diff
1606 "cid" => $process_fido2['cid']
same change fcb1b29

[Web] Fix SOGo access after Passwordless auth

Full commit hash
fcb1b29c890ca2cd5e6718b7cec9c078d3a5251a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1607
      );
Open commit View diff
1607 );
FreddleSpl0it over 1 year ago bc21e7f

[Web] Separate FIDO2 logins

Full commit hash
bc21e7fe503dcb0271a4cefaa53f6591d7792637
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1608
    break;
Open commit View diff
1608 break;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1609
  }
Open commit View diff
1609 }
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1610
}
Open commit View diff
1610 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1611
function unset_tfa_key($_data) {
Open commit View diff
1611 function unset_tfa_key($_data) {
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1612
  // Can only unset own keys
Open commit View diff
1612 // Can only unset own keys
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1613
  // Needs at least one key left
Open commit View diff
1613 // Needs at least one key left
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1614
  global $pdo;
Open commit View diff
1614 global $pdo;
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1615
  global $lang;
Open commit View diff
1615 global $lang;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1616
  $_data_log = $_data;
Open commit View diff
1616 $_data_log = $_data;
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1617
  $access_denied = null;
Open commit View diff
1617 $access_denied = null;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1618
  $id = intval($_data['unset_tfa_key']);
Open commit View diff
1618 $id = intval($_data['unset_tfa_key']);
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1619
  $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1619 $username = $_SESSION['mailcow_cc_username'];
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1620
Open commit View diff
1620
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1621
  // check for empty user and role
Open commit View diff
1621 // check for empty user and role
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1622
  if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) $access_denied = true;
Open commit View diff
1622 if (!isset($_SESSION['mailcow_cc_role']) || empty($username)) $access_denied = true;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1623
Open commit View diff
1623
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1624
  try {
Open commit View diff
1624 try {
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1625
    if (!is_numeric($id)) $access_denied = true;
Open commit View diff
1625 if (!is_numeric($id)) $access_denied = true;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1626
Open commit View diff
1626
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1627
    // set access_denied error
Open commit View diff
1627 // set access_denied error
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1628
    if ($access_denied){
Open commit View diff
1628 if ($access_denied){
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1629
      $_SESSION['return'][] = array(
Open commit View diff
1629 $_SESSION['return'][] = array(
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1630
        'type' => 'danger',
Open commit View diff
1630 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1631
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1631 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1632
        'msg' => 'access_denied'
Open commit View diff
1632 'msg' => 'access_denied'
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1633
      );
Open commit View diff
1633 );
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1634
      return false;
Open commit View diff
1634 return false;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1635
    }
Open commit View diff
1635 }
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1636
Open commit View diff
1636
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1637
    // Block key removal if force_tfa policy is active
Open commit View diff
1637 // Block key removal if force_tfa policy is active
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1638
    $is_forced_tfa = false;
Open commit View diff
1638 $is_forced_tfa = false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1639
    if ($_SESSION['mailcow_cc_role'] === 'user') {
Open commit View diff
1639 if ($_SESSION['mailcow_cc_role'] === 'user') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1640
      $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
Open commit View diff
1640 $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1641
      $stmt_check->execute(array($username));
Open commit View diff
1641 $stmt_check->execute(array($username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1642
      $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
Open commit View diff
1642 $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1643
    } else {
Open commit View diff
1643 } else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1644
      $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
Open commit View diff
1644 $stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1645
      $stmt_check->execute(array($username));
Open commit View diff
1645 $stmt_check->execute(array($username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1646
      $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
Open commit View diff
1646 $is_forced_tfa = ($stmt_check->fetchColumn() == '1');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1647
    }
Open commit View diff
1647 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1648
    if ($is_forced_tfa) {
Open commit View diff
1648 if ($is_forced_tfa) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1649
      $_SESSION['return'][] =  array(
Open commit View diff
1649 $_SESSION['return'][] = array(
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1650
        'type' => 'danger',
Open commit View diff
1650 'type' => 'danger',
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1651
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1651 'log' => array(__FUNCTION__, $_data_log),
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1652
        'msg' => 'tfa_removal_blocked'
Open commit View diff
1652 'msg' => 'tfa_removal_blocked'
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1653
      );
Open commit View diff
1653 );
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1654
      return false;
Open commit View diff
1654 return false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1655
    }
Open commit View diff
1655 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1656
Open commit View diff
1656
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1657
    // check if it's last key
Open commit View diff
1657 // check if it's last key
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1658
    $stmt = $pdo->prepare("SELECT COUNT(*) AS `keys` FROM `tfa`
Open commit View diff
1658 $stmt = $pdo->prepare("SELECT COUNT(*) AS `keys` FROM `tfa`
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1659
      WHERE `username` = :username AND `active` = '1'");
Open commit View diff
1659 WHERE `username` = :username AND `active` = '1'");
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1660
    $stmt->execute(array(':username' => $username));
Open commit View diff
1660 $stmt->execute(array(':username' => $username));
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1661
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1661 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1662
    if ($row['keys'] == "1") {
Open commit View diff
1662 if ($row['keys'] == "1") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1663
      $_SESSION['return'][] =  array(
Open commit View diff
1663 $_SESSION['return'][] = array(
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1664
        'type' => 'danger',
Open commit View diff
1664 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1665
        'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1665 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1666
        'msg' => 'last_key'
Open commit View diff
1666 'msg' => 'last_key'
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1667
      );
Open commit View diff
1667 );
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1668
      return false;
Open commit View diff
1668 return false;
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1669
    }
Open commit View diff
1669 }
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1670
Open commit View diff
1670
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1671
    // delete key
Open commit View diff
1671 // delete key
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1672
    $stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `username` = :username AND `id` = :id");
Open commit View diff
1672 $stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `username` = :username AND `id` = :id");
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1673
    $stmt->execute(array(':username' => $username, ':id' => $id));
Open commit View diff
1673 $stmt->execute(array(':username' => $username, ':id' => $id));
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1674
    $_SESSION['return'][] =  array(
Open commit View diff
1674 $_SESSION['return'][] = array(
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1675
      'type' => 'success',
Open commit View diff
1675 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1676
      'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1676 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1677
      'msg' => array('object_modified', $username)
Open commit View diff
1677 'msg' => array('object_modified', $username)
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1678
    );
Open commit View diff
1678 );
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1679
  }
Open commit View diff
1679 }
same change badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1680
  catch (PDOException $e) {
Open commit View diff
1680 catch (PDOException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1681
    $_SESSION['return'][] =  array(
Open commit View diff
1681 $_SESSION['return'][] = array(
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1682
      'type' => 'danger',
Open commit View diff
1682 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1683
      'log' => array(__FUNCTION__, $_data_log),
Open commit View diff
1683 'log' => array(__FUNCTION__, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1684
      'msg' => array('mysql_error', $e)
Open commit View diff
1684 'msg' => array('mysql_error', $e)
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1685
    );
Open commit View diff
1685 );
same change badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1686
    return false;
Open commit View diff
1686 return false;
same change badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1687
  }
Open commit View diff
1687 }
andryyy over 9 years ago eb3fb6d

Add resources

Full commit hash
eb3fb6d1f8828ea531a95f06ace0a5eb9c56bc85
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1688
}
Open commit View diff
1688 }
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1689
function tfa_exists($username) {
Open commit View diff
1689 function tfa_exists($username) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1690
  global $pdo;
Open commit View diff
1690 global $pdo;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1691
  if (empty($username)) {
Open commit View diff
1691 if (empty($username)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1692
    return false;
Open commit View diff
1692 return false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1693
  }
Open commit View diff
1693 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1694
  $stmt = $pdo->prepare("SELECT COUNT(*) as count FROM `tfa` WHERE `username` = :username");
Open commit View diff
1694 $stmt = $pdo->prepare("SELECT COUNT(*) as count FROM `tfa` WHERE `username` = :username");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1695
  $stmt->execute(array(':username' => $username));
Open commit View diff
1695 $stmt->execute(array(':username' => $username));
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1696
  return $stmt->fetch(PDO::FETCH_ASSOC)['count'] > 0;
Open commit View diff
1696 return $stmt->fetch(PDO::FETCH_ASSOC)['count'] > 0;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
1697
}
Open commit View diff
1697 }
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1698
function get_tfa($username = null, $id = null) {
Open commit View diff
1698 function get_tfa($username = null, $id = null) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1699
  global $pdo;
Open commit View diff
1699 global $pdo;
FreddleSpl0it about 2 years ago f33d82f

[Web] use correct user to fetch TFA authenticators

Full commit hash
f33d82ffc11ed3438609d4e7a6baa78cb3305bc3
Author
FreddleSpl0it <[email protected]>
Date
about 2 years ago
Selected line
1700
  if (empty($username) && isset($_SESSION['mailcow_cc_username'])) {
Open commit View diff
1700 if (empty($username) && isset($_SESSION['mailcow_cc_username'])) {
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1701
    $username = $_SESSION['mailcow_cc_username'];
Open commit View diff
1701 $username = $_SESSION['mailcow_cc_username'];
andryyy over 9 years ago eb3fb6d

Add resources

Full commit hash
eb3fb6d1f8828ea531a95f06ace0a5eb9c56bc85
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1702
  }
Open commit View diff
1702 }
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1703
  elseif (empty($username)) {
Open commit View diff
1703 elseif (empty($username)) {
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1704
    return false;
Open commit View diff
1704 return false;
same change badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1705
  }
Open commit View diff
1705 }
Miro Rauhala about 6 years ago 6bff958

[Web] Clean PHP code by removing unused variables (#3646)

Full commit hash
6bff958ab4381f27aba5464bce80290015d4458a
Author
Miro Rauhala <[email protected]>
Date
about 6 years ago
Selected line
1706
Open commit View diff
1706
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1707
  if (!isset($id)){
Open commit View diff
1707 if (!isset($id)){
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1708
    // fetch all tfa methods - just get information about possible authenticators
Open commit View diff
1708 // fetch all tfa methods - just get information about possible authenticators
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1709
    $stmt = $pdo->prepare("SELECT `id`, `key_id`, `authmech` FROM `tfa`
Open commit View diff
1709 $stmt = $pdo->prepare("SELECT `id`, `key_id`, `authmech` FROM `tfa`
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1710
        WHERE `username` = :username AND `active` = '1'");
Open commit View diff
1710 WHERE `username` = :username AND `active` = '1'");
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1711
    $stmt->execute(array(':username' => $username));
Open commit View diff
1711 $stmt->execute(array(':username' => $username));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1712
    $results = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1712 $results = $stmt->fetchAll(PDO::FETCH_ASSOC);
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1713
Open commit View diff
1713
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1714
    // no tfa methods found
Open commit View diff
1714 // no tfa methods found
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1715
    if (count($results) == 0) {
Open commit View diff
1715 if (count($results) == 0) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1716
        $data['name'] = 'none';
Open commit View diff
1716 $data['name'] = 'none';
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1717
        $data['pretty'] = "-";
Open commit View diff
1717 $data['pretty'] = "-";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1718
        $data['additional'] = array();
Open commit View diff
1718 $data['additional'] = array();
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1719
        return $data;
Open commit View diff
1719 return $data;
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1720
    }
Open commit View diff
1720 }
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1721
Open commit View diff
1721
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1722
    $data['additional'] = $results;
Open commit View diff
1722 $data['additional'] = $results;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1723
    return $data;
Open commit View diff
1723 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1724
  } else {
Open commit View diff
1724 } else {
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1725
    // fetch specific authenticator details by id
Open commit View diff
1725 // fetch specific authenticator details by id
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1726
    $stmt = $pdo->prepare("SELECT * FROM `tfa`
Open commit View diff
1726 $stmt = $pdo->prepare("SELECT * FROM `tfa`
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1727
    WHERE `username` = :username AND `id` = :id AND `active` = '1'");
Open commit View diff
1727 WHERE `username` = :username AND `id` = :id AND `active` = '1'");
same change 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1728
    $stmt->execute(array(':username' => $username, ':id' => $id));
Open commit View diff
1728 $stmt->execute(array(':username' => $username, ':id' => $id));
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1729
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1729 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1730
Open commit View diff
1730
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1731
    if (isset($row["authmech"])) {
Open commit View diff
1731 if (isset($row["authmech"])) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1732
        switch ($row["authmech"]) {
Open commit View diff
1732 switch ($row["authmech"]) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1733
          case "yubi_otp":
Open commit View diff
1733 case "yubi_otp":
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1734
            $data['name'] = "yubi_otp";
Open commit View diff
1734 $data['name'] = "yubi_otp";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1735
            $data['pretty'] = "Yubico OTP";
Open commit View diff
1735 $data['pretty'] = "Yubico OTP";
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1736
            $stmt = $pdo->prepare("SELECT `id`, `key_id`, RIGHT(`secret`, 12) AS 'modhex' FROM `tfa` WHERE `authmech` = 'yubi_otp' AND `username` = :username AND `id` = :id");
Open commit View diff
1736 $stmt = $pdo->prepare("SELECT `id`, `key_id`, RIGHT(`secret`, 12) AS 'modhex' FROM `tfa` WHERE `authmech` = 'yubi_otp' AND `username` = :username AND `id` = :id");
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1737
            $stmt->execute(array(
Open commit View diff
1737 $stmt->execute(array(
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1738
              ':username' => $username,
Open commit View diff
1738 ':username' => $username,
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1739
              ':id' => $id
Open commit View diff
1739 ':id' => $id
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1740
            ));
Open commit View diff
1740 ));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1741
            $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1741 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1742
            while($row = array_shift($rows)) {
Open commit View diff
1742 while($row = array_shift($rows)) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1743
              $data['additional'][] = $row;
Open commit View diff
1743 $data['additional'][] = $row;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1744
            }
Open commit View diff
1744 }
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1745
            return $data;
Open commit View diff
1745 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1746
          break;
Open commit View diff
1746 break;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1747
          // u2f - deprecated, should be removed
Open commit View diff
1747 // u2f - deprecated, should be removed
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1748
          case "u2f":
Open commit View diff
1748 case "u2f":
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1749
            $data['name'] = "u2f";
Open commit View diff
1749 $data['name'] = "u2f";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1750
            $data['pretty'] = "Fido U2F";
Open commit View diff
1750 $data['pretty'] = "Fido U2F";
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1751
            $stmt = $pdo->prepare("SELECT `id`, `key_id` FROM `tfa` WHERE `authmech` = 'u2f' AND `username` = :username AND `id` = :id");
Open commit View diff
1751 $stmt = $pdo->prepare("SELECT `id`, `key_id` FROM `tfa` WHERE `authmech` = 'u2f' AND `username` = :username AND `id` = :id");
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1752
            $stmt->execute(array(
Open commit View diff
1752 $stmt->execute(array(
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1753
              ':username' => $username,
Open commit View diff
1753 ':username' => $username,
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1754
              ':id' => $id
Open commit View diff
1754 ':id' => $id
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1755
            ));
Open commit View diff
1755 ));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1756
            $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1756 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1757
            while($row = array_shift($rows)) {
Open commit View diff
1757 while($row = array_shift($rows)) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1758
              $data['additional'][] = $row;
Open commit View diff
1758 $data['additional'][] = $row;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1759
            }
Open commit View diff
1759 }
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1760
            return $data;
Open commit View diff
1760 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1761
          break;
Open commit View diff
1761 break;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1762
          case "hotp":
Open commit View diff
1762 case "hotp":
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1763
            $data['name'] = "hotp";
Open commit View diff
1763 $data['name'] = "hotp";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1764
            $data['pretty'] = "HMAC-based OTP";
Open commit View diff
1764 $data['pretty'] = "HMAC-based OTP";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1765
            return $data;
Open commit View diff
1765 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1766
          break;
Open commit View diff
1766 break;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1767
          case "totp":
Open commit View diff
1767 case "totp":
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1768
            $data['name'] = "totp";
Open commit View diff
1768 $data['name'] = "totp";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1769
            $data['pretty'] = "Time-based OTP";
Open commit View diff
1769 $data['pretty'] = "Time-based OTP";
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1770
            $stmt = $pdo->prepare("SELECT `id`, `key_id`, `secret` FROM `tfa` WHERE `authmech` = 'totp' AND `username` = :username AND `id` = :id");
Open commit View diff
1770 $stmt = $pdo->prepare("SELECT `id`, `key_id`, `secret` FROM `tfa` WHERE `authmech` = 'totp' AND `username` = :username AND `id` = :id");
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1771
            $stmt->execute(array(
Open commit View diff
1771 $stmt->execute(array(
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1772
              ':username' => $username,
Open commit View diff
1772 ':username' => $username,
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1773
              ':id' => $id
Open commit View diff
1773 ':id' => $id
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1774
            ));
Open commit View diff
1774 ));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1775
            $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1775 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1776
            while($row = array_shift($rows)) {
Open commit View diff
1776 while($row = array_shift($rows)) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1777
              $data['additional'][] = $row;
Open commit View diff
1777 $data['additional'][] = $row;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1778
            }
Open commit View diff
1778 }
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1779
            return $data;
Open commit View diff
1779 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1780
          break;
Open commit View diff
1780 break;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1781
          case "webauthn":
Open commit View diff
1781 case "webauthn":
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1782
            $data['name'] = "webauthn";
Open commit View diff
1782 $data['name'] = "webauthn";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1783
            $data['pretty'] = "WebAuthn";
Open commit View diff
1783 $data['pretty'] = "WebAuthn";
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1784
            $stmt = $pdo->prepare("SELECT `id`, `key_id` FROM `tfa` WHERE `authmech` = 'webauthn' AND `username` = :username AND `id` = :id");
Open commit View diff
1784 $stmt = $pdo->prepare("SELECT `id`, `key_id` FROM `tfa` WHERE `authmech` = 'webauthn' AND `username` = :username AND `id` = :id");
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1785
            $stmt->execute(array(
Open commit View diff
1785 $stmt->execute(array(
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1786
              ':username' => $username,
Open commit View diff
1786 ':username' => $username,
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1787
              ':id' => $id
Open commit View diff
1787 ':id' => $id
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1788
            ));
Open commit View diff
1788 ));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1789
            $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1789 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1790
            while($row = array_shift($rows)) {
Open commit View diff
1790 while($row = array_shift($rows)) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1791
              $data['additional'][] = $row;
Open commit View diff
1791 $data['additional'][] = $row;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1792
            }
Open commit View diff
1792 }
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1793
            return $data;
Open commit View diff
1793 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1794
          break;
Open commit View diff
1794 break;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1795
          default:
Open commit View diff
1795 default:
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1796
            $data['name'] = 'none';
Open commit View diff
1796 $data['name'] = 'none';
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1797
            $data['pretty'] = "-";
Open commit View diff
1797 $data['pretty'] = "-";
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1798
            return $data;
Open commit View diff
1798 return $data;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1799
          break;
Open commit View diff
1799 break;
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1800
        }
Open commit View diff
1800 }
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1801
      }
Open commit View diff
1801 }
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1802
      else {
Open commit View diff
1802 else {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1803
        $data['name'] = 'none';
Open commit View diff
1803 $data['name'] = 'none';
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1804
        $data['pretty'] = "-";
Open commit View diff
1804 $data['pretty'] = "-";
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1805
        return $data;
Open commit View diff
1805 return $data;
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1806
      }
Open commit View diff
1806 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
1807
    }
Open commit View diff
1807 }
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1808
}
Open commit View diff
1808 }
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1809
function verify_tfa_login($username, $_data) {
Open commit View diff
1809 function verify_tfa_login($username, $_data) {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1810
  global $pdo;
Open commit View diff
1810 global $pdo;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1811
  global $yubi;
Open commit View diff
1811 global $yubi;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1812
  global $u2f;
Open commit View diff
1812 global $u2f;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1813
  global $tfa;
Open commit View diff
1813 global $tfa;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1814
  global $WebAuthn;
Open commit View diff
1814 global $WebAuthn;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1815
Open commit View diff
1815
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1816
  if ($_data['tfa_method'] != 'u2f'){
Open commit View diff
1816 if ($_data['tfa_method'] != 'u2f'){
Miro Rauhala about 6 years ago 6bff958

[Web] Clean PHP code by removing unused variables (#3646)

Full commit hash
6bff958ab4381f27aba5464bce80290015d4458a
Author
Miro Rauhala <[email protected]>
Date
about 6 years ago
Selected line
1817
Open commit View diff
1817
FreddleSpl0it about 4 years ago c8620a0

yubi_otp undo authenticator selection

Full commit hash
c8620a066d447ed6aaf6054b184fd16146574e5b
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
1818
    switch ($_data["tfa_method"]) {
Open commit View diff
1818 switch ($_data["tfa_method"]) {
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1819
        case "yubi_otp":
Open commit View diff
1819 case "yubi_otp":
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1820
            if (!ctype_alnum($_data['token']) || strlen($_data['token']) != 44) {
Open commit View diff
1820 if (!ctype_alnum($_data['token']) || strlen($_data['token']) != 44) {
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1821
                $_SESSION['return'][] =  array(
Open commit View diff
1821 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1822
                    'type' => 'danger',
Open commit View diff
1822 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1823
                    'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1823 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1824
                    'msg' => array('yotp_verification_failed', 'token length error')
Open commit View diff
1824 'msg' => array('yotp_verification_failed', 'token length error')
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1825
                );
Open commit View diff
1825 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1826
                return false;
Open commit View diff
1826 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1827
            }
Open commit View diff
1827 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1828
            $yubico_modhex_id = substr($_data['token'], 0, 12);
Open commit View diff
1828 $yubico_modhex_id = substr($_data['token'], 0, 12);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1829
            $stmt = $pdo->prepare("SELECT `id`, `secret` FROM `tfa`
Open commit View diff
1829 $stmt = $pdo->prepare("SELECT `id`, `secret` FROM `tfa`
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1830
                WHERE `username` = :username
Open commit View diff
1830 WHERE `username` = :username
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1831
                AND `authmech` = 'yubi_otp'
Open commit View diff
1831 AND `authmech` = 'yubi_otp'
FreddleSpl0it over 4 years ago 6d3798a

[Web] fix yubi otp

Full commit hash
6d3798ad08176cf542bb2fdea858be99cccbf190
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1832
                AND `active` = '1'
Open commit View diff
1832 AND `active` = '1'
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1833
                AND `secret` LIKE :modhex");
Open commit View diff
1833 AND `secret` LIKE :modhex");
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1834
            $stmt->execute(array(':username' => $username, ':modhex' => '%' . $yubico_modhex_id));
Open commit View diff
1834 $stmt->execute(array(':username' => $username, ':modhex' => '%' . $yubico_modhex_id));
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1835
            $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1835 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1836
            $yubico_auth = explode(':', $row['secret']);
Open commit View diff
1836 $yubico_auth = explode(':', $row['secret']);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1837
            $yubi = new Auth_Yubico($yubico_auth[0], $yubico_auth[1]);
Open commit View diff
1837 $yubi = new Auth_Yubico($yubico_auth[0], $yubico_auth[1]);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1838
            $yauth = $yubi->verify($_data['token']);
Open commit View diff
1838 $yauth = $yubi->verify($_data['token']);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1839
            if (PEAR::isError($yauth)) {
Open commit View diff
1839 if (PEAR::isError($yauth)) {
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1840
                $_SESSION['return'][] =  array(
Open commit View diff
1840 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1841
                    'type' => 'danger',
Open commit View diff
1841 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1842
                    'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1842 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1843
                    'msg' => array('yotp_verification_failed', $yauth->getMessage())
Open commit View diff
1843 'msg' => array('yotp_verification_failed', $yauth->getMessage())
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1844
                );
Open commit View diff
1844 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1845
                return false;
Open commit View diff
1845 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1846
            }
Open commit View diff
1846 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1847
            else {
Open commit View diff
1847 else {
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1848
                $_SESSION['tfa_id'] = $row['id'];
Open commit View diff
1848 $_SESSION['tfa_id'] = $row['id'];
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1849
                $_SESSION['return'][] =  array(
Open commit View diff
1849 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1850
                    'type' => 'success',
Open commit View diff
1850 'type' => 'success',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1851
                    'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1851 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1852
                    'msg' => 'verified_yotp_login'
Open commit View diff
1852 'msg' => 'verified_yotp_login'
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1853
                );
Open commit View diff
1853 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1854
                return true;
Open commit View diff
1854 return true;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1855
            }
Open commit View diff
1855 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1856
            $_SESSION['return'][] =  array(
Open commit View diff
1856 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1857
                'type' => 'danger',
Open commit View diff
1857 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1858
                'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1858 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1859
                'msg' => array('yotp_verification_failed', 'unknown')
Open commit View diff
1859 'msg' => array('yotp_verification_failed', 'unknown')
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1860
            );
Open commit View diff
1860 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1861
            return false;
Open commit View diff
1861 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1862
        break;
Open commit View diff
1862 break;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1863
        case "hotp":
Open commit View diff
1863 case "hotp":
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1864
            return false;
Open commit View diff
1864 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1865
        break;
Open commit View diff
1865 break;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1866
        case "totp":
Open commit View diff
1866 case "totp":
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1867
          try {
Open commit View diff
1867 try {
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1868
            $stmt = $pdo->prepare("SELECT `id`, `secret` FROM `tfa`
Open commit View diff
1868 $stmt = $pdo->prepare("SELECT `id`, `secret` FROM `tfa`
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1869
                WHERE `username` = :username
Open commit View diff
1869 WHERE `username` = :username
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1870
                AND `authmech` = 'totp'
Open commit View diff
1870 AND `authmech` = 'totp'
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1871
                AND `id` = :id
Open commit View diff
1871 AND `id` = :id
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1872
                AND `active`='1'");
Open commit View diff
1872 AND `active`='1'");
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1873
            $stmt->execute(array(':username' => $username, ':id' => $_data['id']));
Open commit View diff
1873 $stmt->execute(array(':username' => $username, ':id' => $_data['id']));
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1874
            $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
1874 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1875
            foreach ($rows as $row) {
Open commit View diff
1875 foreach ($rows as $row) {
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1876
              if ($tfa->verifyCode($row['secret'], $_data['token']) === true) {
Open commit View diff
1876 if ($tfa->verifyCode($row['secret'], $_data['token']) === true) {
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1877
                $_SESSION['tfa_id'] = $row['id'];
Open commit View diff
1877 $_SESSION['tfa_id'] = $row['id'];
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1878
                $_SESSION['return'][] =  array(
Open commit View diff
1878 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1879
                    'type' => 'success',
Open commit View diff
1879 'type' => 'success',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1880
                    'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1880 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1881
                    'msg' => 'verified_totp_login'
Open commit View diff
1881 'msg' => 'verified_totp_login'
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1882
                );
Open commit View diff
1882 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1883
                return true;
Open commit View diff
1883 return true;
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1884
              }
Open commit View diff
1884 }
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1885
            }
Open commit View diff
1885 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1886
            $_SESSION['return'][] =  array(
Open commit View diff
1886 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1887
                'type' => 'danger',
Open commit View diff
1887 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1888
                'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1888 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1889
                'msg' => 'totp_verification_failed'
Open commit View diff
1889 'msg' => 'totp_verification_failed'
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1890
            );
Open commit View diff
1890 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1891
            return false;
Open commit View diff
1891 return false;
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1892
          }
Open commit View diff
1892 }
same change 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1893
          catch (PDOException $e) {
Open commit View diff
1893 catch (PDOException $e) {
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1894
            $_SESSION['return'][] =  array(
Open commit View diff
1894 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1895
                'type' => 'danger',
Open commit View diff
1895 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1896
                'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1896 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1897
                'msg' => array('mysql_error', $e)
Open commit View diff
1897 'msg' => array('mysql_error', $e)
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1898
            );
Open commit View diff
1898 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1899
            return false;
Open commit View diff
1899 return false;
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1900
          }
Open commit View diff
1900 }
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1901
        break;
Open commit View diff
1901 break;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1902
        case "webauthn":
Open commit View diff
1902 case "webauthn":
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1903
            $tokenData = json_decode($_data['token']);
Open commit View diff
1903 $tokenData = json_decode($_data['token']);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1904
            $clientDataJSON = base64_decode($tokenData->clientDataJSON);
Open commit View diff
1904 $clientDataJSON = base64_decode($tokenData->clientDataJSON);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1905
            $authenticatorData = base64_decode($tokenData->authenticatorData);
Open commit View diff
1905 $authenticatorData = base64_decode($tokenData->authenticatorData);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1906
            $signature = base64_decode($tokenData->signature);
Open commit View diff
1906 $signature = base64_decode($tokenData->signature);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1907
            $id = base64_decode($tokenData->id);
Open commit View diff
1907 $id = base64_decode($tokenData->id);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1908
            $challenge = $_SESSION['challenge'];
Open commit View diff
1908 $challenge = $_SESSION['challenge'];
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1909
Open commit View diff
1909
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1910
            $stmt = $pdo->prepare("SELECT `id`, `key_id`, `keyHandle`, `username`, `publicKey` FROM `tfa` WHERE `id` = :id AND `active`='1'");
Open commit View diff
1910 $stmt = $pdo->prepare("SELECT `id`, `key_id`, `keyHandle`, `username`, `publicKey` FROM `tfa` WHERE `id` = :id AND `active`='1'");
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1911
            $stmt->execute(array(':id' => $_data['id']));
Open commit View diff
1911 $stmt->execute(array(':id' => $_data['id']));
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1912
            $process_webauthn = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1912 $process_webauthn = $stmt->fetch(PDO::FETCH_ASSOC);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1913
Open commit View diff
1913
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1914
            if (empty($process_webauthn)){
Open commit View diff
1914 if (empty($process_webauthn)){
same change 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1915
              $_SESSION['return'][] =  array(
Open commit View diff
1915 $_SESSION['return'][] = array(
same change 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1916
                  'type' => 'danger',
Open commit View diff
1916 'type' => 'danger',
same change 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1917
                  'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1917 'log' => array(__FUNCTION__, $username, '*'),
FreddleSpl0it over 3 years ago e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1918
                  'msg' => array('webauthn_authenticator_failed')
Open commit View diff
1918 'msg' => array('webauthn_authenticator_failed')
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1919
              );
Open commit View diff
1919 );
same change 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1920
              return false;
Open commit View diff
1920 return false;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1921
            }
Open commit View diff
1921 }
same change dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
1922
Open commit View diff
1922
FreddleSpl0it over 4 years ago 5fcccbc

[Web] add verify selected tfa

Full commit hash
5fcccbc97d02c4b0cdd0c479bd15d6293b83dbb0
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1923
            if (empty($process_webauthn['publicKey']) || $process_webauthn['publicKey'] === false) {
Open commit View diff
1923 if (empty($process_webauthn['publicKey']) || $process_webauthn['publicKey'] === false) {
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1924
                $_SESSION['return'][] =  array(
Open commit View diff
1924 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1925
                    'type' => 'danger',
Open commit View diff
1925 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1926
                    'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1926 'log' => array(__FUNCTION__, $username, '*'),
FreddleSpl0it over 3 years ago e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1927
                    'msg' => array('webauthn_publickey_failed')
Open commit View diff
1927 'msg' => array('webauthn_publickey_failed')
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1928
                );
Open commit View diff
1928 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1929
                return false;
Open commit View diff
1929 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1930
            }
Open commit View diff
1930 }
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1931
Open commit View diff
1931
FreddleSpl0it over 3 years ago e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1932
            if ($process_webauthn['username'] != $_SESSION['pending_mailcow_cc_username']){
Open commit View diff
1932 if ($process_webauthn['username'] != $_SESSION['pending_mailcow_cc_username']){
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1933
              $_SESSION['return'][] =  array(
Open commit View diff
1933 $_SESSION['return'][] = array(
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1934
                  'type' => 'danger',
Open commit View diff
1934 'type' => 'danger',
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1935
                  'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1935 'log' => array(__FUNCTION__, $username, '*'),
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1936
                  'msg' => array('webauthn_username_failed')
Open commit View diff
1936 'msg' => array('webauthn_username_failed')
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1937
              );
Open commit View diff
1937 );
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1938
              return false;
Open commit View diff
1938 return false;
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1939
            }
Open commit View diff
1939 }
same change e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1940
Open commit View diff
1940
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1941
            try {
Open commit View diff
1941 try {
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1942
                $WebAuthn->processGet($clientDataJSON, $authenticatorData, $signature, $process_webauthn['publicKey'], $challenge, null, $GLOBALS['WEBAUTHN_UV_FLAG_LOGIN'], $GLOBALS['WEBAUTHN_USER_PRESENT_FLAG']);
Open commit View diff
1942 $WebAuthn->processGet($clientDataJSON, $authenticatorData, $signature, $process_webauthn['publicKey'], $challenge, null, $GLOBALS['WEBAUTHN_UV_FLAG_LOGIN'], $GLOBALS['WEBAUTHN_USER_PRESENT_FLAG']);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1943
            }
Open commit View diff
1943 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1944
            catch (Throwable $ex) {
Open commit View diff
1944 catch (Throwable $ex) {
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1945
                $_SESSION['return'][] =  array(
Open commit View diff
1945 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1946
                    'type' => 'danger',
Open commit View diff
1946 'type' => 'danger',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1947
                    'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1947 'log' => array(__FUNCTION__, $username, '*'),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1948
                    'msg' => array('webauthn_verification_failed', $ex->getMessage())
Open commit View diff
1948 'msg' => array('webauthn_verification_failed', $ex->getMessage())
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1949
                );
Open commit View diff
1949 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1950
                return false;
Open commit View diff
1950 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1951
            }
Open commit View diff
1951 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1952
Open commit View diff
1952
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1953
            $stmt = $pdo->prepare("SELECT `superadmin` FROM `admin` WHERE `username` = :username");
Open commit View diff
1953 $stmt = $pdo->prepare("SELECT `superadmin` FROM `admin` WHERE `username` = :username");
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1954
            $stmt->execute(array(':username' => $process_webauthn['username']));
Open commit View diff
1954 $stmt->execute(array(':username' => $process_webauthn['username']));
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1955
            $obj_props = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1955 $obj_props = $stmt->fetch(PDO::FETCH_ASSOC);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1956
            if ($obj_props['superadmin'] === 1) {
Open commit View diff
1956 if ($obj_props['superadmin'] === 1) {
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1957
              $_SESSION["mailcow_cc_role"] = "admin";
Open commit View diff
1957 $_SESSION["mailcow_cc_role"] = "admin";
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1958
            }
Open commit View diff
1958 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1959
            elseif ($obj_props['superadmin'] === 0) {
Open commit View diff
1959 elseif ($obj_props['superadmin'] === 0) {
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1960
              $_SESSION["mailcow_cc_role"] = "domainadmin";
Open commit View diff
1960 $_SESSION["mailcow_cc_role"] = "domainadmin";
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1961
            }
Open commit View diff
1961 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1962
            else {
Open commit View diff
1962 else {
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1963
              $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :username");
Open commit View diff
1963 $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :username");
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1964
              $stmt->execute(array(':username' => $process_webauthn['username']));
Open commit View diff
1964 $stmt->execute(array(':username' => $process_webauthn['username']));
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1965
              $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
1965 $row = $stmt->fetch(PDO::FETCH_ASSOC);
FreddleSpl0it over 4 years ago 70921b8

[Web] tfa extra debugging

Full commit hash
70921b8d154d365f13b50b91a68ae5cc484a79a9
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1966
              if (!empty($row['username'])) {
Open commit View diff
1966 if (!empty($row['username'])) {
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1967
                $_SESSION["mailcow_cc_role"] = "user";
Open commit View diff
1967 $_SESSION["mailcow_cc_role"] = "user";
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1968
              } else {
Open commit View diff
1968 } else {
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1969
                $_SESSION['return'][] =  array(
Open commit View diff
1969 $_SESSION['return'][] = array(
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1970
                  'type' => 'danger',
Open commit View diff
1970 'type' => 'danger',
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1971
                  'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1971 'log' => array(__FUNCTION__, $username, '*'),
FreddleSpl0it over 3 years ago e8fd34d

[Web] webauthn add lang strings

Full commit hash
e8fd34d31f4551c7415b38a8a401e619a9fe24e4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
1972
                  'msg' => array('webauthn_role_failed')
Open commit View diff
1972 'msg' => array('webauthn_role_failed')
FreddleSpl0it over 4 years ago b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1973
                );
Open commit View diff
1973 );
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1974
                return false;
Open commit View diff
1974 return false;
same change b185f83

[Web] tfa extra debugging

Full commit hash
b185f83fc3e38ae44d87161e4f9d229bcc8f4bec
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1975
              }
Open commit View diff
1975 }
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1976
            }
Open commit View diff
1976 }
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1977
Open commit View diff
1977
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1978
            $_SESSION["mailcow_cc_username"] = $process_webauthn['username'];
Open commit View diff
1978 $_SESSION["mailcow_cc_username"] = $process_webauthn['username'];
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
1979
            $_SESSION['tfa_id'] = $process_webauthn['id'];
Open commit View diff
1979 $_SESSION['tfa_id'] = $process_webauthn['id'];
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1980
            $_SESSION['authReq'] = null;
Open commit View diff
1980 $_SESSION['authReq'] = null;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1981
            unset($_SESSION["challenge"]);
Open commit View diff
1981 unset($_SESSION["challenge"]);
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1982
            $_SESSION['return'][] =  array(
Open commit View diff
1982 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1983
                'type' => 'success',
Open commit View diff
1983 'type' => 'success',
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1984
                'log' => array("webauthn_login"),
Open commit View diff
1984 'log' => array("webauthn_login"),
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1985
                'msg' => array('logged_in_as', $process_webauthn['username'])
Open commit View diff
1985 'msg' => array('logged_in_as', $process_webauthn['username'])
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1986
            );
Open commit View diff
1986 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1987
            return true;
Open commit View diff
1987 return true;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1988
        break;
Open commit View diff
1988 break;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1989
        default:
Open commit View diff
1989 default:
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1990
            $_SESSION['return'][] =  array(
Open commit View diff
1990 $_SESSION['return'][] = array(
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1991
            'type' => 'danger',
Open commit View diff
1991 'type' => 'danger',
andryyy over 4 years ago 8769a91

[Web] Allow multiple TOTP

Full commit hash
8769a91388dc242031dc1edce0731e638b54fe6b
Author
andryyy <[email protected]>
Date
over 4 years ago
Selected line
1992
            'log' => array(__FUNCTION__, $username, '*'),
Open commit View diff
1992 'log' => array(__FUNCTION__, $username, '*'),
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1993
            'msg' => 'unknown_tfa_method'
Open commit View diff
1993 'msg' => 'unknown_tfa_method'
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1994
            );
Open commit View diff
1994 );
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1995
            return false;
Open commit View diff
1995 return false;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1996
        break;
Open commit View diff
1996 break;
andryyy about 9 years ago 14a9a1c

A lot of changes... still not finished, use with caution.

Full commit hash
14a9a1c616ae0a217cb53a3a86c9b84140bb0553
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1997
    }
Open commit View diff
1997 }
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
1998
Open commit View diff
1998
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1999
    return false;
Open commit View diff
1999 return false;
FreddleSpl0it over 4 years ago 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2000
  } else {
Open commit View diff
2000 } else {
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2001
    // delete old keys that used u2f
Open commit View diff
2001 // delete old keys that used u2f
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2002
    $stmt = $pdo->prepare("SELECT * FROM `tfa` WHERE `authmech` = 'u2f' AND `username` = :username");
Open commit View diff
2002 $stmt = $pdo->prepare("SELECT * FROM `tfa` WHERE `authmech` = 'u2f' AND `username` = :username");
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2003
    $stmt->execute(array(':username' => $username));
Open commit View diff
2003 $stmt->execute(array(':username' => $username));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2004
    $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
2004 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2005
    if (count($rows) == 0) return false;
Open commit View diff
2005 if (count($rows) == 0) return false;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2006
Open commit View diff
2006
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2007
    $stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `authmech` = 'u2f' AND `username` = :username");
Open commit View diff
2007 $stmt = $pdo->prepare("DELETE FROM `tfa` WHERE `authmech` = 'u2f' AND `username` = :username");
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2008
    $stmt->execute(array(':username' => $username));
Open commit View diff
2008 $stmt->execute(array(':username' => $username));
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2009
    return true;
Open commit View diff
2009 return true;
same change 3ef2b6c

[Web] add verify selected tfa

Full commit hash
3ef2b6cfa2a99c1adbd2e9e5e74b278274fa4ade
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
2010
  }
Open commit View diff
2010 }
andryyy over 9 years ago badef73

Make alias domains selectable in sender acl, a lot of code changes, added challenges for u2f to json_api, added U2F as TFA

Full commit hash
badef73191b114f716c8371fb66442f70dd40a3f
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
2011
}
Open commit View diff
2011 }
andryyy over 6 years ago 8f4540d

[Web] r/o API keys, Pushover integration (can be limited by ACL), other minor changes

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2012
function admin_api($access, $action, $data = null) {
Open commit View diff
2012 function admin_api($access, $action, $data = null) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2013
  global $pdo;
Open commit View diff
2013 global $pdo;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2014
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2014 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2015
    $_SESSION['return'][] =  array(
Open commit View diff
2015 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2016
      'type' => 'danger',
Open commit View diff
2016 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2017
      'log' => array(__FUNCTION__),
Open commit View diff
2017 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2018
      'msg' => 'access_denied'
Open commit View diff
2018 'msg' => 'access_denied'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2019
    );
Open commit View diff
2019 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2020
    return false;
Open commit View diff
2020 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2021
  }
Open commit View diff
2021 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2022
  if ($access !== "ro" && $access !== "rw") {
Open commit View diff
2022 if ($access !== "ro" && $access !== "rw") {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2023
    $_SESSION['return'][] =  array(
Open commit View diff
2023 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2024
      'type' => 'danger',
Open commit View diff
2024 'type' => 'danger',
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2025
      'log' => array(__FUNCTION__),
Open commit View diff
2025 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2026
      'msg' => 'invalid access type'
Open commit View diff
2026 'msg' => 'invalid access type'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2027
    );
Open commit View diff
2027 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2028
    return false;
Open commit View diff
2028 return false;
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2029
  }
Open commit View diff
2029 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2030
  if ($action == "edit") {
Open commit View diff
2030 if ($action == "edit") {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2031
    $active = (!empty($data['active'])) ? 1 : 0;
Open commit View diff
2031 $active = (!empty($data['active'])) ? 1 : 0;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2032
    $skip_ip_check = (isset($data['skip_ip_check'])) ? 1 : 0;
Open commit View diff
2032 $skip_ip_check = (isset($data['skip_ip_check'])) ? 1 : 0;
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2033
    $allow_from = array();
Open commit View diff
2033 $allow_from = array();
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2034
    if (isset($data['allow_from'])) {
Open commit View diff
2034 if (isset($data['allow_from'])) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2035
      $allow_from = array_map('trim', preg_split( "/( |,|;|\n)/", $data['allow_from']));
Open commit View diff
2035 $allow_from = array_map('trim', preg_split( "/( |,|;|\n)/", $data['allow_from']));
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2036
    }
Open commit View diff
2036 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2037
    foreach ($allow_from as $key => $val) {
Open commit View diff
2037 foreach ($allow_from as $key => $val) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2038
      if (empty($val)) {
Open commit View diff
2038 if (empty($val)) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2039
        unset($allow_from[$key]);
Open commit View diff
2039 unset($allow_from[$key]);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2040
        continue;
Open commit View diff
2040 continue;
andryyy over 6 years ago 8f4540d

[Web] r/o API keys, Pushover integration (can be limited by ACL), other minor changes

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2041
      }
Open commit View diff
2041 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2042
      if (valid_network($val) !== true) {
Open commit View diff
2042 if (valid_network($val) !== true) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2043
        $_SESSION['return'][] =  array(
Open commit View diff
2043 $_SESSION['return'][] = array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2044
          'type' => 'warning',
Open commit View diff
2044 'type' => 'warning',
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2045
          'log' => array(__FUNCTION__, $data),
Open commit View diff
2045 'log' => array(__FUNCTION__, $data),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2046
          'msg' => array('ip_invalid', htmlspecialchars($allow_from[$key]))
Open commit View diff
2046 'msg' => array('ip_invalid', htmlspecialchars($allow_from[$key]))
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2047
        );
Open commit View diff
2047 );
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2048
        unset($allow_from[$key]);
Open commit View diff
2048 unset($allow_from[$key]);
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2049
        continue;
Open commit View diff
2049 continue;
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2050
      }
Open commit View diff
2050 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2051
    }
Open commit View diff
2051 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2052
    $allow_from = implode(',', array_unique(array_filter($allow_from)));
Open commit View diff
2052 $allow_from = implode(',', array_unique(array_filter($allow_from)));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2053
    if (empty($allow_from) && $skip_ip_check == 0) {
Open commit View diff
2053 if (empty($allow_from) && $skip_ip_check == 0) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2054
      $_SESSION['return'][] =  array(
Open commit View diff
2054 $_SESSION['return'][] = array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2055
        'type' => 'danger',
Open commit View diff
2055 'type' => 'danger',
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2056
        'log' => array(__FUNCTION__, $data),
Open commit View diff
2056 'log' => array(__FUNCTION__, $data),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2057
        'msg' => 'ip_list_empty'
Open commit View diff
2057 'msg' => 'ip_list_empty'
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2058
      );
Open commit View diff
2058 );
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2059
      return false;
Open commit View diff
2059 return false;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2060
    }
Open commit View diff
2060 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2061
    $api_key = implode('-', array(
Open commit View diff
2061 $api_key = implode('-', array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2062
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2062 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2063
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2063 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2064
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2064 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2065
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2065 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2066
      strtoupper(bin2hex(random_bytes(3)))
Open commit View diff
2066 strtoupper(bin2hex(random_bytes(3)))
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2067
    ));
Open commit View diff
2067 ));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2068
    $stmt = $pdo->query("SELECT `api_key` FROM `api` WHERE `access` = '" . $access . "'");
Open commit View diff
2068 $stmt = $pdo->query("SELECT `api_key` FROM `api` WHERE `access` = '" . $access . "'");
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2069
    $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
Open commit View diff
2069 $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2070
    if (empty($num_results)) {
Open commit View diff
2070 if (empty($num_results)) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2071
      $stmt = $pdo->prepare("INSERT INTO `api` (`api_key`, `skip_ip_check`, `active`, `allow_from`, `access`)
Open commit View diff
2071 $stmt = $pdo->prepare("INSERT INTO `api` (`api_key`, `skip_ip_check`, `active`, `allow_from`, `access`)
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2072
        VALUES (:api_key, :skip_ip_check, :active, :allow_from, :access);");
Open commit View diff
2072 VALUES (:api_key, :skip_ip_check, :active, :allow_from, :access);");
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2073
      $stmt->execute(array(
Open commit View diff
2073 $stmt->execute(array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2074
        ':api_key' => $api_key,
Open commit View diff
2074 ':api_key' => $api_key,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2075
        ':skip_ip_check' => $skip_ip_check,
Open commit View diff
2075 ':skip_ip_check' => $skip_ip_check,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2076
        ':active' => $active,
Open commit View diff
2076 ':active' => $active,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2077
        ':allow_from' => $allow_from,
Open commit View diff
2077 ':allow_from' => $allow_from,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2078
        ':access' => $access
Open commit View diff
2078 ':access' => $access
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2079
      ));
Open commit View diff
2079 ));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2080
    }
Open commit View diff
2080 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2081
    else {
Open commit View diff
2081 else {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2082
      if ($skip_ip_check == 0) {
Open commit View diff
2082 if ($skip_ip_check == 0) {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2083
        $stmt = $pdo->prepare("UPDATE `api` SET `skip_ip_check` = :skip_ip_check,
Open commit View diff
2083 $stmt = $pdo->prepare("UPDATE `api` SET `skip_ip_check` = :skip_ip_check,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2084
          `active` = :active,
Open commit View diff
2084 `active` = :active,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2085
          `allow_from` = :allow_from
Open commit View diff
2085 `allow_from` = :allow_from
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2086
            WHERE `access` = :access;");
Open commit View diff
2086 WHERE `access` = :access;");
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2087
        $stmt->execute(array(
Open commit View diff
2087 $stmt->execute(array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2088
          ':active' => $active,
Open commit View diff
2088 ':active' => $active,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2089
          ':skip_ip_check' => $skip_ip_check,
Open commit View diff
2089 ':skip_ip_check' => $skip_ip_check,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2090
          ':allow_from' => $allow_from,
Open commit View diff
2090 ':allow_from' => $allow_from,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2091
          ':access' => $access
Open commit View diff
2091 ':access' => $access
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2092
        ));
Open commit View diff
2092 ));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2093
      }
Open commit View diff
2093 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2094
      else {
Open commit View diff
2094 else {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2095
        $stmt = $pdo->prepare("UPDATE `api` SET `skip_ip_check` = :skip_ip_check,
Open commit View diff
2095 $stmt = $pdo->prepare("UPDATE `api` SET `skip_ip_check` = :skip_ip_check,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2096
          `active` = :active
Open commit View diff
2096 `active` = :active
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2097
            WHERE `access` = :access;");
Open commit View diff
2097 WHERE `access` = :access;");
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2098
        $stmt->execute(array(
Open commit View diff
2098 $stmt->execute(array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2099
          ':active' => $active,
Open commit View diff
2099 ':active' => $active,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2100
          ':skip_ip_check' => $skip_ip_check,
Open commit View diff
2100 ':skip_ip_check' => $skip_ip_check,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2101
          ':access' => $access
Open commit View diff
2101 ':access' => $access
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2102
        ));
Open commit View diff
2102 ));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2103
      }
Open commit View diff
2103 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2104
    }
Open commit View diff
2104 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2105
  }
Open commit View diff
2105 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2106
  elseif ($action == "regen_key") {
Open commit View diff
2106 elseif ($action == "regen_key") {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2107
    $api_key = implode('-', array(
Open commit View diff
2107 $api_key = implode('-', array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2108
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2108 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2109
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2109 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2110
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2110 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2111
      strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
2111 strtoupper(bin2hex(random_bytes(3))),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2112
      strtoupper(bin2hex(random_bytes(3)))
Open commit View diff
2112 strtoupper(bin2hex(random_bytes(3)))
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2113
    ));
Open commit View diff
2113 ));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2114
    $stmt = $pdo->prepare("UPDATE `api` SET `api_key` = :api_key WHERE `access` = :access");
Open commit View diff
2114 $stmt = $pdo->prepare("UPDATE `api` SET `api_key` = :api_key WHERE `access` = :access");
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2115
    $stmt->execute(array(
Open commit View diff
2115 $stmt->execute(array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2116
      ':api_key' => $api_key,
Open commit View diff
2116 ':api_key' => $api_key,
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2117
      ':access' => $access
Open commit View diff
2117 ':access' => $access
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2118
    ));
Open commit View diff
2118 ));
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2119
  }
Open commit View diff
2119 }
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2120
  elseif ($action == "get") {
Open commit View diff
2120 elseif ($action == "get") {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2121
    $stmt = $pdo->query("SELECT * FROM `api` WHERE `access` = '" . $access . "'");
Open commit View diff
2121 $stmt = $pdo->query("SELECT * FROM `api` WHERE `access` = '" . $access . "'");
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2122
    $apidata = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
2122 $apidata = $stmt->fetch(PDO::FETCH_ASSOC);
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2123
    if ($apidata !== false) {
Open commit View diff
2123 if ($apidata !== false) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2124
      $apidata['allow_from'] = str_replace(',', PHP_EOL, $apidata['allow_from']);
Open commit View diff
2124 $apidata['allow_from'] = str_replace(',', PHP_EOL, $apidata['allow_from']);
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2125
    }
Open commit View diff
2125 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2126
    return $apidata;
Open commit View diff
2126 return $apidata;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2127
  }
Open commit View diff
2127 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2128
  $_SESSION['return'][] =  array(
Open commit View diff
2128 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2129
    'type' => 'success',
Open commit View diff
2129 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2130
    'log' => array(__FUNCTION__, $data),
Open commit View diff
2130 'log' => array(__FUNCTION__, $data),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2131
    'msg' => 'admin_api_modified'
Open commit View diff
2131 'msg' => 'admin_api_modified'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2132
  );
Open commit View diff
2132 );
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2133
}
Open commit View diff
2133 }
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2134
function license($action, $data = null) {
Open commit View diff
2134 function license($action, $data = null) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2135
  global $pdo;
Open commit View diff
2135 global $pdo;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2136
  global $redis;
Open commit View diff
2136 global $redis;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2137
  global $lang;
Open commit View diff
2137 global $lang;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2138
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2138 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2139
    $_SESSION['return'][] =  array(
Open commit View diff
2139 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2140
      'type' => 'danger',
Open commit View diff
2140 'type' => 'danger',
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2141
      'log' => array(__FUNCTION__),
Open commit View diff
2141 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2142
      'msg' => 'access_denied'
Open commit View diff
2142 'msg' => 'access_denied'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2143
    );
Open commit View diff
2143 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2144
    return false;
Open commit View diff
2144 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2145
  }
Open commit View diff
2145 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2146
  switch ($action) {
Open commit View diff
2146 switch ($action) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2147
    case "verify":
Open commit View diff
2147 case "verify":
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2148
      // Keep result until revalidate button is pressed or session expired
Open commit View diff
2148 // Keep result until revalidate button is pressed or session expired
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2149
      $stmt = $pdo->query("SELECT `version` FROM `versions` WHERE `application` = 'GUID'");
Open commit View diff
2149 $stmt = $pdo->query("SELECT `version` FROM `versions` WHERE `application` = 'GUID'");
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2150
      $versions = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
2150 $versions = $stmt->fetch(PDO::FETCH_ASSOC);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2151
      $post = array('guid' => $versions['version']);
Open commit View diff
2151 $post = array('guid' => $versions['version']);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2152
      $curl = curl_init('https://verify.mailcow.email');
Open commit View diff
2152 $curl = curl_init('https://verify.mailcow.email');
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2153
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
2153 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2154
      curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
Open commit View diff
2154 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2155
      curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
Open commit View diff
2155 curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2156
      $response = curl_exec($curl);
Open commit View diff
2156 $response = curl_exec($curl);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2157
      curl_close($curl);
Open commit View diff
2157 curl_close($curl);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2158
      $json_return = json_decode($response, true);
Open commit View diff
2158 $json_return = json_decode($response, true);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2159
      if ($response && $json_return) {
Open commit View diff
2159 if ($response && $json_return) {
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2160
        if ($json_return['response'] === "ok") {
Open commit View diff
2160 if ($json_return['response'] === "ok") {
andryyy almost 7 years ago 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2161
          $_SESSION['gal']['valid'] = "true";
Open commit View diff
2161 $_SESSION['gal']['valid'] = "true";
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2162
          $_SESSION['gal']['c'] = $json_return['c'];
Open commit View diff
2162 $_SESSION['gal']['c'] = $json_return['c'];
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2163
          $_SESSION['gal']['s'] = $json_return['s'];
Open commit View diff
2163 $_SESSION['gal']['s'] = $json_return['s'];
andryyy over 6 years ago b124225

[Web] Fix cow level, sorry :(

Full commit hash
b1242259e7fbb3b80f69f85ffb52f13a070c2f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2164
          if ($json_return['m'] == 'NoMoore') {
Open commit View diff
2164 if ($json_return['m'] == 'NoMoore') {
same change b124225

[Web] Fix cow level, sorry :(

Full commit hash
b1242259e7fbb3b80f69f85ffb52f13a070c2f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2165
            $_SESSION['gal']['m'] = '🐄';
Open commit View diff
2165 $_SESSION['gal']['m'] = '🐄';
same change b124225

[Web] Fix cow level, sorry :(

Full commit hash
b1242259e7fbb3b80f69f85ffb52f13a070c2f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2166
          }
Open commit View diff
2166 }
same change b124225

[Web] Fix cow level, sorry :(

Full commit hash
b1242259e7fbb3b80f69f85ffb52f13a070c2f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2167
          else {
Open commit View diff
2167 else {
same change b124225

[Web] Fix cow level, sorry :(

Full commit hash
b1242259e7fbb3b80f69f85ffb52f13a070c2f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2168
            $_SESSION['gal']['m'] = str_repeat('🐄', substr_count($json_return['m'], 'o'));
Open commit View diff
2168 $_SESSION['gal']['m'] = str_repeat('🐄', substr_count($json_return['m'], 'o'));
same change b124225

[Web] Fix cow level, sorry :(

Full commit hash
b1242259e7fbb3b80f69f85ffb52f13a070c2f47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2169
          }
Open commit View diff
2169 }
andryyy over 6 years ago 653c058

[Web] Feature: Allow app passwords for imap/smtp, allow to set acl permission for app passwords (domain admin [when logged in as user] and user)

Full commit hash
653c058e33039c174d5cc73b7162101c5158d150
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2170
        }
Open commit View diff
2170 }
andryyy almost 7 years ago 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2171
        elseif ($json_return['response'] === "invalid") {
Open commit View diff
2171 elseif ($json_return['response'] === "invalid") {
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2172
          $_SESSION['gal']['valid'] = "false";
Open commit View diff
2172 $_SESSION['gal']['valid'] = "false";
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2173
          $_SESSION['gal']['c'] = $lang['mailbox']['no'];
Open commit View diff
2173 $_SESSION['gal']['c'] = $lang['mailbox']['no'];
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2174
          $_SESSION['gal']['s'] = $lang['mailbox']['no'];
Open commit View diff
2174 $_SESSION['gal']['s'] = $lang['mailbox']['no'];
andryyy over 6 years ago 653c058

[Web] Feature: Allow app passwords for imap/smtp, allow to set acl permission for app passwords (domain admin [when logged in as user] and user)

Full commit hash
653c058e33039c174d5cc73b7162101c5158d150
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2175
          $_SESSION['gal']['m'] = $lang['mailbox']['no'];
Open commit View diff
2175 $_SESSION['gal']['m'] = $lang['mailbox']['no'];
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2176
        }
Open commit View diff
2176 }
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2177
      }
Open commit View diff
2177 }
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2178
      else {
Open commit View diff
2178 else {
andryyy almost 7 years ago 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2179
        $_SESSION['gal']['valid'] = "false";
Open commit View diff
2179 $_SESSION['gal']['valid'] = "false";
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2180
        $_SESSION['gal']['c'] = $lang['danger']['temp_error'];
Open commit View diff
2180 $_SESSION['gal']['c'] = $lang['danger']['temp_error'];
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2181
        $_SESSION['gal']['s'] = $lang['danger']['temp_error'];
Open commit View diff
2181 $_SESSION['gal']['s'] = $lang['danger']['temp_error'];
andryyy over 6 years ago 653c058

[Web] Feature: Allow app passwords for imap/smtp, allow to set acl permission for app passwords (domain admin [when logged in as user] and user)

Full commit hash
653c058e33039c174d5cc73b7162101c5158d150
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2182
        $_SESSION['gal']['m'] = $lang['danger']['temp_error'];
Open commit View diff
2182 $_SESSION['gal']['m'] = $lang['danger']['temp_error'];
andryyy almost 7 years ago 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2183
      }
Open commit View diff
2183 }
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2184
      try {
Open commit View diff
2184 try {
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2185
        // json_encode needs "true"/"false" instead of true/false, to not encode it to 0 or 1
Open commit View diff
2185 // json_encode needs "true"/"false" instead of true/false, to not encode it to 0 or 1
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2186
        $redis->Set('LICENSE_STATUS_CACHE', json_encode($_SESSION['gal']));
Open commit View diff
2186 $redis->Set('LICENSE_STATUS_CACHE', json_encode($_SESSION['gal']));
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2187
      }
Open commit View diff
2187 }
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2188
      catch (RedisException $e) {
Open commit View diff
2188 catch (RedisException $e) {
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2189
        $_SESSION['return'][] = array(
Open commit View diff
2189 $_SESSION['return'][] = array(
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2190
          'type' => 'danger',
Open commit View diff
2190 'type' => 'danger',
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2191
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
2191 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2192
          'msg' => array('redis_error', $e)
Open commit View diff
2192 'msg' => array('redis_error', $e)
same change 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2193
        );
Open commit View diff
2193 );
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2194
        return false;
Open commit View diff
2194 return false;
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2195
      }
Open commit View diff
2195 }
andryyy almost 7 years ago 294e0bc

[Web] Cache validation result in Redis

Full commit hash
294e0bc07f641ce4237c211cd79a14299b5c6cc5
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2196
      return $_SESSION['gal']['valid'];
Open commit View diff
2196 return $_SESSION['gal']['valid'];
andryyy almost 7 years ago 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2197
    break;
Open commit View diff
2197 break;
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2198
    case "guid":
Open commit View diff
2198 case "guid":
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2199
      $stmt = $pdo->query("SELECT `version` FROM `versions` WHERE `application` = 'GUID'");
Open commit View diff
2199 $stmt = $pdo->query("SELECT `version` FROM `versions` WHERE `application` = 'GUID'");
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2200
      $versions = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
2200 $versions = $stmt->fetch(PDO::FETCH_ASSOC);
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2201
      return $versions['version'];
Open commit View diff
2201 return $versions['version'];
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2202
    break;
Open commit View diff
2202 break;
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2203
  }
Open commit View diff
2203 }
same change 9a500a7

[Web] Verify OPTIONAL license plus minor fixes

Full commit hash
9a500a7068a633c41b35373b83d25d8d7d9cacc7
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2204
}
Open commit View diff
2204 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2205
function rspamd_ui($action, $data = null) {
Open commit View diff
2205 function rspamd_ui($action, $data = null) {
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2206
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2206 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2207
    $_SESSION['return'][] =  array(
Open commit View diff
2207 $_SESSION['return'][] = array(
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2208
      'type' => 'danger',
Open commit View diff
2208 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2209
      'log' => array(__FUNCTION__),
Open commit View diff
2209 'log' => array(__FUNCTION__),
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2210
      'msg' => 'access_denied'
Open commit View diff
2210 'msg' => 'access_denied'
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2211
    );
Open commit View diff
2211 );
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2212
    return false;
Open commit View diff
2212 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2213
  }
Open commit View diff
2213 }
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2214
  switch ($action) {
Open commit View diff
2214 switch ($action) {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
2215
    case "edit":
Open commit View diff
2215 case "edit":
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2216
      $rspamd_ui_pass = $data['rspamd_ui_pass'];
Open commit View diff
2216 $rspamd_ui_pass = $data['rspamd_ui_pass'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2217
      $rspamd_ui_pass2 = $data['rspamd_ui_pass2'];
Open commit View diff
2217 $rspamd_ui_pass2 = $data['rspamd_ui_pass2'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2218
      if (empty($rspamd_ui_pass) || empty($rspamd_ui_pass2)) {
Open commit View diff
2218 if (empty($rspamd_ui_pass) || empty($rspamd_ui_pass2)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2219
        $_SESSION['return'][] =  array(
Open commit View diff
2219 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2220
          'type' => 'danger',
Open commit View diff
2220 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2221
          'log' => array(__FUNCTION__, '*', '*'),
Open commit View diff
2221 'log' => array(__FUNCTION__, '*', '*'),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2222
          'msg' => 'password_empty'
Open commit View diff
2222 'msg' => 'password_empty'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2223
        );
Open commit View diff
2223 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2224
        return false;
Open commit View diff
2224 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2225
      }
Open commit View diff
2225 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2226
      if ($rspamd_ui_pass != $rspamd_ui_pass2) {
Open commit View diff
2226 if ($rspamd_ui_pass != $rspamd_ui_pass2) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2227
        $_SESSION['return'][] =  array(
Open commit View diff
2227 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2228
          'type' => 'danger',
Open commit View diff
2228 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2229
          'log' => array(__FUNCTION__, '*', '*'),
Open commit View diff
2229 'log' => array(__FUNCTION__, '*', '*'),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2230
          'msg' => 'password_mismatch'
Open commit View diff
2230 'msg' => 'password_mismatch'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2231
        );
Open commit View diff
2231 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2232
        return false;
Open commit View diff
2232 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2233
      }
Open commit View diff
2233 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2234
      if (strlen($rspamd_ui_pass) < 6) {
Open commit View diff
2234 if (strlen($rspamd_ui_pass) < 6) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2235
        $_SESSION['return'][] =  array(
Open commit View diff
2235 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2236
          'type' => 'danger',
Open commit View diff
2236 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2237
          'log' => array(__FUNCTION__, '*', '*'),
Open commit View diff
2237 'log' => array(__FUNCTION__, '*', '*'),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2238
          'msg' => 'rspamd_ui_pw_length'
Open commit View diff
2238 'msg' => 'rspamd_ui_pw_length'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2239
        );
Open commit View diff
2239 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2240
        return false;
Open commit View diff
2240 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2241
      }
Open commit View diff
2241 }
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
2242
      $docker_return = docker('post', 'rspamd-mailcow', 'exec', array('cmd' => 'rspamd', 'task' => 'worker_password', 'raw' => $rspamd_ui_pass), array('Content-Type: application/json'));
Open commit View diff
2242 $docker_return = docker('post', 'rspamd-mailcow', 'exec', array('cmd' => 'rspamd', 'task' => 'worker_password', 'raw' => $rspamd_ui_pass), array('Content-Type: application/json'));
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2243
      if ($docker_return_array = json_decode($docker_return, true)) {
Open commit View diff
2243 if ($docker_return_array = json_decode($docker_return, true)) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2244
        if ($docker_return_array['type'] == 'success') {
Open commit View diff
2244 if ($docker_return_array['type'] == 'success') {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2245
          $_SESSION['return'][] =  array(
Open commit View diff
2245 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2246
            'type' => 'success',
Open commit View diff
2246 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2247
            'log' => array(__FUNCTION__, '*', '*'),
Open commit View diff
2247 'log' => array(__FUNCTION__, '*', '*'),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2248
            'msg' => 'rspamd_ui_pw_set'
Open commit View diff
2248 'msg' => 'rspamd_ui_pw_set'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2249
          );
Open commit View diff
2249 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2250
          return true;
Open commit View diff
2250 return true;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2251
        }
Open commit View diff
2251 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2252
        else {
Open commit View diff
2252 else {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2253
          $_SESSION['return'][] =  array(
Open commit View diff
2253 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2254
            'type' => $docker_return_array['type'],
Open commit View diff
2254 'type' => $docker_return_array['type'],
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2255
            'log' => array(__FUNCTION__, '*', '*'),
Open commit View diff
2255 'log' => array(__FUNCTION__, '*', '*'),
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2256
            'msg' => $docker_return_array['msg']
Open commit View diff
2256 'msg' => $docker_return_array['msg']
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2257
          );
Open commit View diff
2257 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2258
          return false;
Open commit View diff
2258 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2259
        }
Open commit View diff
2259 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2260
      }
Open commit View diff
2260 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2261
      else {
Open commit View diff
2261 else {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2262
        $_SESSION['return'][] =  array(
Open commit View diff
2262 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2263
          'type' => 'danger',
Open commit View diff
2263 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2264
          'log' => array(__FUNCTION__, '*', '*'),
Open commit View diff
2264 'log' => array(__FUNCTION__, '*', '*'),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2265
          'msg' => 'unknown'
Open commit View diff
2265 'msg' => 'unknown'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2266
        );
Open commit View diff
2266 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2267
        return false;
Open commit View diff
2267 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2268
      }
Open commit View diff
2268 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2269
    break;
Open commit View diff
2269 break;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2270
  }
Open commit View diff
2270 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2271
}
Open commit View diff
2271 }
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2272
function cors($action, $data = null) {
Open commit View diff
2272 function cors($action, $data = null) {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2273
  global $redis;
Open commit View diff
2273 global $redis;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2274
Open commit View diff
2274
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2275
  switch ($action) {
Open commit View diff
2275 switch ($action) {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2276
    case "edit":
Open commit View diff
2276 case "edit":
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2277
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2277 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2278
        $_SESSION['return'][] =  array(
Open commit View diff
2278 $_SESSION['return'][] = array(
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2279
          'type' => 'danger',
Open commit View diff
2279 'type' => 'danger',
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2280
          'log' => array(__FUNCTION__, $action, $data),
Open commit View diff
2280 'log' => array(__FUNCTION__, $action, $data),
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2281
          'msg' => 'access_denied'
Open commit View diff
2281 'msg' => 'access_denied'
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2282
        );
Open commit View diff
2282 );
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2283
        return false;
Open commit View diff
2283 return false;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2284
      }
Open commit View diff
2284 }
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2285
Open commit View diff
2285
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2286
      $allowed_origins = isset($data['allowed_origins']) ? $data['allowed_origins'] : array($_SERVER['SERVER_NAME']);
Open commit View diff
2286 $allowed_origins = isset($data['allowed_origins']) ? $data['allowed_origins'] : array($_SERVER['SERVER_NAME']);
FreddleSpl0it about 3 years ago 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2287
      $allowed_origins = !is_array($allowed_origins) ? array_filter(array_map('trim', explode("\n", $allowed_origins))) : $allowed_origins;
Open commit View diff
2287 $allowed_origins = !is_array($allowed_origins) ? array_filter(array_map('trim', explode("\n", $allowed_origins))) : $allowed_origins;
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2288
      foreach ($allowed_origins as $origin) {
Open commit View diff
2288 foreach ($allowed_origins as $origin) {
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2289
        if (!filter_var($origin, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) && $origin != '*') {
Open commit View diff
2289 if (!filter_var($origin, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) && $origin != '*') {
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2290
          $_SESSION['return'][] = array(
Open commit View diff
2290 $_SESSION['return'][] = array(
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2291
            'type' => 'danger',
Open commit View diff
2291 'type' => 'danger',
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2292
            'log' => array(__FUNCTION__, $action, $data),
Open commit View diff
2292 'log' => array(__FUNCTION__, $action, $data),
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2293
            'msg' => 'cors_invalid_origin'
Open commit View diff
2293 'msg' => 'cors_invalid_origin'
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2294
          );
Open commit View diff
2294 );
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2295
          return false;
Open commit View diff
2295 return false;
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2296
        }
Open commit View diff
2296 }
same change 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2297
      }
Open commit View diff
2297 }
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2298
Open commit View diff
2298
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2299
      $allowed_methods = isset($data['allowed_methods']) ? $data['allowed_methods'] : array('GET', 'POST', 'PUT', 'DELETE');
Open commit View diff
2299 $allowed_methods = isset($data['allowed_methods']) ? $data['allowed_methods'] : array('GET', 'POST', 'PUT', 'DELETE');
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2300
      $allowed_methods  = !is_array($allowed_methods) ? array_map('trim', preg_split( "/( |,|;|\n)/", $allowed_methods)) : $allowed_methods;
Open commit View diff
2300 $allowed_methods = !is_array($allowed_methods) ? array_map('trim', preg_split( "/( |,|;|\n)/", $allowed_methods)) : $allowed_methods;
FreddleSpl0it about 3 years ago 6b82284

[Web] cors - add check if origin is valid

Full commit hash
6b82284a419a4452acb1d66c0b92b69672851d4c
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2301
      $available_methods = array('GET', 'POST', 'PUT', 'DELETE');
Open commit View diff
2301 $available_methods = array('GET', 'POST', 'PUT', 'DELETE');
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2302
      foreach ($allowed_methods as $method) {
Open commit View diff
2302 foreach ($allowed_methods as $method) {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2303
        if (!in_array($method, $available_methods)) {
Open commit View diff
2303 if (!in_array($method, $available_methods)) {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2304
          $_SESSION['return'][] = array(
Open commit View diff
2304 $_SESSION['return'][] = array(
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2305
            'type' => 'danger',
Open commit View diff
2305 'type' => 'danger',
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2306
            'log' => array(__FUNCTION__, $action, $data),
Open commit View diff
2306 'log' => array(__FUNCTION__, $action, $data),
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2307
            'msg' => 'cors_invalid_method'
Open commit View diff
2307 'msg' => 'cors_invalid_method'
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2308
          );
Open commit View diff
2308 );
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2309
          return false;
Open commit View diff
2309 return false;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2310
        }
Open commit View diff
2310 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2311
      }
Open commit View diff
2311 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2312
Open commit View diff
2312
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2313
      try {
Open commit View diff
2313 try {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2314
        $redis->hMSet('CORS_SETTINGS', array(
Open commit View diff
2314 $redis->hMSet('CORS_SETTINGS', array(
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2315
          'allowed_origins' => implode(', ', $allowed_origins),
Open commit View diff
2315 'allowed_origins' => implode(', ', $allowed_origins),
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2316
          'allowed_methods' => implode(', ', $allowed_methods)
Open commit View diff
2316 'allowed_methods' => implode(', ', $allowed_methods)
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2317
        ));
Open commit View diff
2317 ));
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2318
      } catch (RedisException $e) {
Open commit View diff
2318 } catch (RedisException $e) {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2319
        $_SESSION['return'][] = array(
Open commit View diff
2319 $_SESSION['return'][] = array(
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2320
          'type' => 'danger',
Open commit View diff
2320 'type' => 'danger',
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2321
          'log' => array(__FUNCTION__, $action, $data),
Open commit View diff
2321 'log' => array(__FUNCTION__, $action, $data),
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2322
          'msg' => array('redis_error', $e)
Open commit View diff
2322 'msg' => array('redis_error', $e)
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2323
        );
Open commit View diff
2323 );
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2324
        return false;
Open commit View diff
2324 return false;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2325
      }
Open commit View diff
2325 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2326
Open commit View diff
2326
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2327
      $_SESSION['return'][] = array(
Open commit View diff
2327 $_SESSION['return'][] = array(
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2328
        'type' => 'success',
Open commit View diff
2328 'type' => 'success',
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2329
        'log' => array(__FUNCTION__, $action, $data),
Open commit View diff
2329 'log' => array(__FUNCTION__, $action, $data),
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2330
        'msg' => 'cors_headers_edited'
Open commit View diff
2330 'msg' => 'cors_headers_edited'
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2331
      );
Open commit View diff
2331 );
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2332
      return true;
Open commit View diff
2332 return true;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2333
    break;
Open commit View diff
2333 break;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2334
    case "get":
Open commit View diff
2334 case "get":
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2335
      try {
Open commit View diff
2335 try {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2336
        $cors_settings                  = $redis->hMGet('CORS_SETTINGS', array('allowed_origins', 'allowed_methods'));
Open commit View diff
2336 $cors_settings = $redis->hMGet('CORS_SETTINGS', array('allowed_origins', 'allowed_methods'));
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2337
      } catch (RedisException $e) {
Open commit View diff
2337 } catch (RedisException $e) {
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2338
        $_SESSION['return'][] = array(
Open commit View diff
2338 $_SESSION['return'][] = array(
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2339
          'type' => 'danger',
Open commit View diff
2339 'type' => 'danger',
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2340
          'log' => array(__FUNCTION__, $action, $data),
Open commit View diff
2340 'log' => array(__FUNCTION__, $action, $data),
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2341
          'msg' => array('redis_error', $e)
Open commit View diff
2341 'msg' => array('redis_error', $e)
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2342
        );
Open commit View diff
2342 );
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2343
      }
Open commit View diff
2343 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2344
Open commit View diff
2344
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2345
      $cors_settings                    = !$cors_settings ? array('allowed_origins' => $_SERVER['SERVER_NAME'], 'allowed_methods' => 'GET, POST, PUT, DELETE') : $cors_settings;
Open commit View diff
2345 $cors_settings = !$cors_settings ? array('allowed_origins' => $_SERVER['SERVER_NAME'], 'allowed_methods' => 'GET, POST, PUT, DELETE') : $cors_settings;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2346
      $cors_settings['allowed_origins'] = empty($cors_settings['allowed_origins']) ? $_SERVER['SERVER_NAME'] : $cors_settings['allowed_origins'];
Open commit View diff
2346 $cors_settings['allowed_origins'] = empty($cors_settings['allowed_origins']) ? $_SERVER['SERVER_NAME'] : $cors_settings['allowed_origins'];
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2347
      $cors_settings['allowed_methods'] = empty($cors_settings['allowed_methods']) ? 'GET, POST, PUT, DELETE, OPTION' : $cors_settings['allowed_methods'];
Open commit View diff
2347 $cors_settings['allowed_methods'] = empty($cors_settings['allowed_methods']) ? 'GET, POST, PUT, DELETE, OPTION' : $cors_settings['allowed_methods'];
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2348
Open commit View diff
2348
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2349
      return $cors_settings;
Open commit View diff
2349 return $cors_settings;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2350
    break;
Open commit View diff
2350 break;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2351
    case "set_headers":
Open commit View diff
2351 case "set_headers":
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2352
      $cors_settings = cors('get');
Open commit View diff
2352 $cors_settings = cors('get');
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2353
      // check if requested origin is in allowed origins
Open commit View diff
2353 // check if requested origin is in allowed origins
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2354
      $allowed_origins = explode(', ', $cors_settings['allowed_origins']);
Open commit View diff
2354 $allowed_origins = explode(', ', $cors_settings['allowed_origins']);
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2355
      $cors_settings['allowed_origins'] = $allowed_origins[0];
Open commit View diff
2355 $cors_settings['allowed_origins'] = $allowed_origins[0];
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2356
      if (in_array('*', $allowed_origins)){
Open commit View diff
2356 if (in_array('*', $allowed_origins)){
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2357
        $cors_settings['allowed_origins'] = '*';
Open commit View diff
2357 $cors_settings['allowed_origins'] = '*';
Paul Sütterlin 12 months ago 6b8e981

fix: Only use HTTP_ORIGIN if it is sent.

Full commit hash
6b8e981bdc4e647c9c39638c259d4ff7b1945e2d
Author
Paul Sütterlin <[email protected]>
Date
12 months ago
Selected line
2358
      } else if (array_key_exists('HTTP_ORIGIN', $_SERVER) && in_array($_SERVER['HTTP_ORIGIN'], $allowed_origins)) {
Open commit View diff
2358 } else if (array_key_exists('HTTP_ORIGIN', $_SERVER) && in_array($_SERVER['HTTP_ORIGIN'], $allowed_origins)) {
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2359
        $cors_settings['allowed_origins'] = $_SERVER['HTTP_ORIGIN'];
Open commit View diff
2359 $cors_settings['allowed_origins'] = $_SERVER['HTTP_ORIGIN'];
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2360
      }
Open commit View diff
2360 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2361
      // always allow OPTIONS for preflight request
Open commit View diff
2361 // always allow OPTIONS for preflight request
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2362
      $cors_settings["allowed_methods"] = empty($cors_settings["allowed_methods"]) ? 'OPTIONS' : $cors_settings["allowed_methods"] . ', ' . 'OPTIONS';
Open commit View diff
2362 $cors_settings["allowed_methods"] = empty($cors_settings["allowed_methods"]) ? 'OPTIONS' : $cors_settings["allowed_methods"] . ', ' . 'OPTIONS';
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2363
Open commit View diff
2363
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2364
      header('Access-Control-Allow-Origin: ' . $cors_settings['allowed_origins']);
Open commit View diff
2364 header('Access-Control-Allow-Origin: ' . $cors_settings['allowed_origins']);
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2365
      header('Access-Control-Allow-Methods: '. $cors_settings['allowed_methods']);
Open commit View diff
2365 header('Access-Control-Allow-Methods: '. $cors_settings['allowed_methods']);
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2366
      header('Access-Control-Allow-Headers: Accept, Content-Type, X-Api-Key, Origin');
Open commit View diff
2366 header('Access-Control-Allow-Headers: Accept, Content-Type, X-Api-Key, Origin');
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2367
Open commit View diff
2367
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2368
      // Access-Control settings requested, this is just a preflight request
Open commit View diff
2368 // Access-Control settings requested, this is just a preflight request
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2369
      if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS' &&
Open commit View diff
2369 if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS' &&
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2370
        isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']) &&
Open commit View diff
2370 isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']) &&
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2371
        isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) {
Open commit View diff
2371 isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) {
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2372
Open commit View diff
2372
FreddleSpl0it about 3 years ago 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2373
        $allowed_methods = explode(', ', $cors_settings["allowed_methods"]);
Open commit View diff
2373 $allowed_methods = explode(', ', $cors_settings["allowed_methods"]);
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2374
        if (in_array($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'], $allowed_methods, true))
Open commit View diff
2374 if (in_array($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'], $allowed_methods, true))
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2375
          // method allowed send 200 OK
Open commit View diff
2375 // method allowed send 200 OK
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2376
          http_response_code(200);
Open commit View diff
2376 http_response_code(200);
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2377
        else
Open commit View diff
2377 else
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2378
          // method not allowed send 405 METHOD NOT ALLOWED
Open commit View diff
2378 // method not allowed send 405 METHOD NOT ALLOWED
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2379
          http_response_code(405);
Open commit View diff
2379 http_response_code(405);
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2380
Open commit View diff
2380
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2381
        exit;
Open commit View diff
2381 exit;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2382
      }
Open commit View diff
2382 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2383
    break;
Open commit View diff
2383 break;
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2384
  }
Open commit View diff
2384 }
same change 192f67c

[Web] add cors to json_api

Full commit hash
192f67cd4164baf4c080b77db17ccdd69ef568a9
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2385
}
Open commit View diff
2385 }
FreddleSpl0it over 1 year ago a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2386
function getBaseURL($protocol = null) {
Open commit View diff
2386 function getBaseURL($protocol = null) {
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2387
  // Get current server name
Open commit View diff
2387 // Get current server name
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2388
  $host = strtolower($_SERVER['SERVER_NAME']);
Open commit View diff
2388 $host = strtolower($_SERVER['SERVER_NAME']);
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2389
Open commit View diff
2389
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2390
  // craft allowed server name list
Open commit View diff
2390 // craft allowed server name list
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2391
  $mailcow_hostname = strtolower(getenv("MAILCOW_HOSTNAME"));
Open commit View diff
2391 $mailcow_hostname = strtolower(getenv("MAILCOW_HOSTNAME"));
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2392
  $additional_server_names = strtolower(getenv("ADDITIONAL_SERVER_NAMES")) ?: "";
Open commit View diff
2392 $additional_server_names = strtolower(getenv("ADDITIONAL_SERVER_NAMES")) ?: "";
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2393
  $additional_server_names = preg_replace('/\s+/', '', $additional_server_names);
Open commit View diff
2393 $additional_server_names = preg_replace('/\s+/', '', $additional_server_names);
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2394
  $allowed_server_names = $additional_server_names !== "" ? explode(',', $additional_server_names) : array();
Open commit View diff
2394 $allowed_server_names = $additional_server_names !== "" ? explode(',', $additional_server_names) : array();
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2395
  array_push($allowed_server_names, $mailcow_hostname);
Open commit View diff
2395 array_push($allowed_server_names, $mailcow_hostname);
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2396
Open commit View diff
2396
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2397
  // Fallback to MAILCOW HOSTNAME if current server name is not in allowed list
Open commit View diff
2397 // Fallback to MAILCOW HOSTNAME if current server name is not in allowed list
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2398
  if (!in_array($host, $allowed_server_names)) {
Open commit View diff
2398 if (!in_array($host, $allowed_server_names)) {
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2399
    $host = $mailcow_hostname;
Open commit View diff
2399 $host = $mailcow_hostname;
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2400
  }
Open commit View diff
2400 }
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2401
Open commit View diff
2401
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2402
  if (!isset($protocol)) {
Open commit View diff
2402 if (!isset($protocol)) {
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2403
    $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
Open commit View diff
2403 $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
same change a2e87e0

[Web] Add validation for server_name against allow list

Full commit hash
a2e87e0880e8a882cffd47d50d17cd26e3e8846d
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2404
  }
Open commit View diff
2404 }
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2405
  $base_url = $protocol . '://' . $host;
Open commit View diff
2405 $base_url = $protocol . '://' . $host;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2406
Open commit View diff
2406
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2407
  return $base_url;
Open commit View diff
2407 return $base_url;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2408
}
Open commit View diff
2408 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2409
function uuid4() {
Open commit View diff
2409 function uuid4() {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2410
  $data = openssl_random_pseudo_bytes(16);
Open commit View diff
2410 $data = openssl_random_pseudo_bytes(16);
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2411
Open commit View diff
2411
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2412
  $data[6] = chr(ord($data[6]) & 0x0f | 0x40);
Open commit View diff
2412 $data[6] = chr(ord($data[6]) & 0x0f | 0x40);
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2413
  $data[8] = chr(ord($data[8]) & 0x3f | 0x80);
Open commit View diff
2413 $data[8] = chr(ord($data[8]) & 0x3f | 0x80);
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2414
Open commit View diff
2414
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2415
  return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
Open commit View diff
2415 return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2416
}
Open commit View diff
2416 }
FreddleSpl0it over 2 years ago ffbf175

[Web] fix identity_provider ArgumentCountError

Full commit hash
ffbf1758e0a8e49d3b030b6edba67ac4d3eb8a61
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2417
function identity_provider($_action = null, $_data = null, $_extra = null) {
Open commit View diff
2417 function identity_provider($_action = null, $_data = null, $_extra = null) {
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2418
  global $pdo;
Open commit View diff
2418 global $pdo;
FreddleSpl0it over 2 years ago d237157

init identity_provider only after all conditions are met

Full commit hash
d237157c0b743434ce213d895a130e02a0b06b3e
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2419
  global $iam_provider;
Open commit View diff
2419 global $iam_provider;
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2420
  global $iam_settings;
Open commit View diff
2420 global $iam_settings;
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2421
Open commit View diff
2421
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2422
  $data_log = $_data;
Open commit View diff
2422 $data_log = $_data;
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2423
  if (isset($data_log['client_secret'])) $data_log['client_secret'] = '*';
Open commit View diff
2423 if (isset($data_log['client_secret'])) $data_log['client_secret'] = '*';
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2424
  if (isset($data_log['access_token'])) $data_log['access_token'] = '*';
Open commit View diff
2424 if (isset($data_log['access_token'])) $data_log['access_token'] = '*';
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2425
Open commit View diff
2425
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2426
  switch ($_action) {
Open commit View diff
2426 switch ($_action) {
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2427
    case 'get':
Open commit View diff
2427 case 'get':
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2428
      $settings = array();
Open commit View diff
2428 $settings = array();
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2429
      $stmt = $pdo->prepare("SELECT * FROM `identity_provider`;");
Open commit View diff
2429 $stmt = $pdo->prepare("SELECT * FROM `identity_provider`;");
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2430
      $stmt->execute();
Open commit View diff
2430 $stmt->execute();
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2431
      $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
2431 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2432
      foreach($rows as $row){
Open commit View diff
2432 foreach($rows as $row){
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2433
        switch ($row["key"]) {
Open commit View diff
2433 switch ($row["key"]) {
PseudoResonance over 1 year ago 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2434
          case "redirect_url_extra":
Open commit View diff
2434 case "redirect_url_extra":
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2435
          case "mappers":
Open commit View diff
2435 case "mappers":
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2436
          case "templates":
Open commit View diff
2436 case "templates":
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2437
            $settings[$row["key"]] = json_decode($row["value"]);
Open commit View diff
2437 $settings[$row["key"]] = json_decode($row["value"]);
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2438
          break;
Open commit View diff
2438 break;
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2439
          case "use_ssl":
Open commit View diff
2439 case "use_ssl":
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2440
          case "use_tls":
Open commit View diff
2440 case "use_tls":
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2441
          case "login_provisioning":
Open commit View diff
2441 case "login_provisioning":
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2442
          case "ignore_ssl_errors":
Open commit View diff
2442 case "ignore_ssl_errors":
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2443
            $settings[$row["key"]] = boolval($row["value"]);
Open commit View diff
2443 $settings[$row["key"]] = boolval($row["value"]);
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2444
          break;
Open commit View diff
2444 break;
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2445
          default:
Open commit View diff
2445 default:
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2446
            $settings[$row["key"]] = $row["value"];
Open commit View diff
2446 $settings[$row["key"]] = $row["value"];
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2447
          break;
Open commit View diff
2447 break;
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2448
        }
Open commit View diff
2448 }
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2449
      }
Open commit View diff
2449 }
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2450
      // set login_provisioning if not exists
Open commit View diff
2450 // set login_provisioning if not exists
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2451
      if (!array_key_exists('login_provisioning', $settings)) {
Open commit View diff
2451 if (!array_key_exists('login_provisioning', $settings)) {
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2452
        $settings['login_provisioning'] = 1;
Open commit View diff
2452 $settings['login_provisioning'] = 1;
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2453
      }
Open commit View diff
2453 }
FreddleSpl0it almost 3 years ago eb9e3b8

[Web] add configurable client scopes for generic-oidc

Full commit hash
eb9e3b8391a5d8f24e92ba9b5d00b1093e162747
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2454
      // return default client_scopes for generic-oidc if none is set
Open commit View diff
2454 // return default client_scopes for generic-oidc if none is set
same change eb9e3b8

[Web] add configurable client scopes for generic-oidc

Full commit hash
eb9e3b8391a5d8f24e92ba9b5d00b1093e162747
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2455
      if ($settings["authsource"] == "generic-oidc" && empty($settings["client_scopes"])){
Open commit View diff
2455 if ($settings["authsource"] == "generic-oidc" && empty($settings["client_scopes"])){
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2456
        $settings["client_scopes"] = "openid profile email mailcow_template";
Open commit View diff
2456 $settings["client_scopes"] = "openid profile email mailcow_template";
FreddleSpl0it almost 3 years ago eb9e3b8

[Web] add configurable client scopes for generic-oidc

Full commit hash
eb9e3b8391a5d8f24e92ba9b5d00b1093e162747
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2457
      }
Open commit View diff
2457 }
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2458
      if ($_extra['hide_sensitive']){
Open commit View diff
2458 if ($_extra['hide_sensitive']){
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2459
        $settings['client_secret'] = '';
Open commit View diff
2459 $settings['client_secret'] = '';
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2460
        $settings['access_token'] = '';
Open commit View diff
2460 $settings['access_token'] = '';
FreddleSpl0it over 3 years ago 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2461
      }
Open commit View diff
2461 }
FreddleSpl0it over 2 years ago 0807c12

[Web] set default LDAP options on get

Full commit hash
0807c122f659f074b8376313d9ab9c4bed6fba06
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2462
      // return default ldap options
Open commit View diff
2462 // return default ldap options
same change 0807c12

[Web] set default LDAP options on get

Full commit hash
0807c122f659f074b8376313d9ab9c4bed6fba06
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2463
      if ($settings["authsource"] == "ldap"){
Open commit View diff
2463 if ($settings["authsource"] == "ldap"){
same change 0807c12

[Web] set default LDAP options on get

Full commit hash
0807c122f659f074b8376313d9ab9c4bed6fba06
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2464
        $settings['use_ssl'] = !isset($settings['use_ssl']) ? false : $settings['use_ssl'];
Open commit View diff
2464 $settings['use_ssl'] = !isset($settings['use_ssl']) ? false : $settings['use_ssl'];
same change 0807c12

[Web] set default LDAP options on get

Full commit hash
0807c122f659f074b8376313d9ab9c4bed6fba06
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2465
        $settings['use_tls'] = !isset($settings['use_tls']) ? false : $settings['use_tls'];
Open commit View diff
2465 $settings['use_tls'] = !isset($settings['use_tls']) ? false : $settings['use_tls'];
same change 0807c12

[Web] set default LDAP options on get

Full commit hash
0807c122f659f074b8376313d9ab9c4bed6fba06
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2466
        $settings['ignore_ssl_errors'] = !isset($settings['ignore_ssl_errors']) ? false : $settings['ignore_ssl_errors'];
Open commit View diff
2466 $settings['ignore_ssl_errors'] = !isset($settings['ignore_ssl_errors']) ? false : $settings['ignore_ssl_errors'];
same change 0807c12

[Web] set default LDAP options on get

Full commit hash
0807c122f659f074b8376313d9ab9c4bed6fba06
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2467
      }
Open commit View diff
2467 }
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2468
      return $settings;
Open commit View diff
2468 return $settings;
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2469
    break;
Open commit View diff
2469 break;
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2470
    case 'edit':
Open commit View diff
2470 case 'edit':
FreddleSpl0it over 3 years ago 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2471
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2471 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2472
        $_SESSION['return'][] = array(
Open commit View diff
2472 $_SESSION['return'][] = array(
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2473
          'type' => 'danger',
Open commit View diff
2473 'type' => 'danger',
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2474
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
2474 'log' => array(__FUNCTION__, $_action, $_data),
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2475
          'msg' => 'access_denied'
Open commit View diff
2475 'msg' => 'access_denied'
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2476
        );
Open commit View diff
2476 );
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2477
        return false;
Open commit View diff
2477 return false;
same change 0a77cad

[Web] limit identity_provider function better

Full commit hash
0a77cad2dd7285b3cde1d5b382870e4e9fc1c21b
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2478
      }
Open commit View diff
2478 }
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2479
      if (!isset($_data['authsource'])){
Open commit View diff
2479 if (!isset($_data['authsource'])){
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2480
        $_SESSION['return'][] =  array(
Open commit View diff
2480 $_SESSION['return'][] = array(
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2481
          'type' => 'danger',
Open commit View diff
2481 'type' => 'danger',
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2482
          'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2482 'log' => array(__FUNCTION__, $_action, $data_log),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2483
          'msg' => array('required_data_missing', '')
Open commit View diff
2483 'msg' => array('required_data_missing', '')
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2484
        );
Open commit View diff
2484 );
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2485
        return false;
Open commit View diff
2485 return false;
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2486
      }
Open commit View diff
2486 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2487
Open commit View diff
2487
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2488
      $available_authsources = array(
Open commit View diff
2488 $available_authsources = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2489
        "keycloak",
Open commit View diff
2489 "keycloak",
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2490
        "generic-oidc",
Open commit View diff
2490 "generic-oidc",
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2491
        "ldap"
Open commit View diff
2491 "ldap"
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2492
      );
Open commit View diff
2492 );
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2493
      $_data['authsource'] = strtolower($_data['authsource']);
Open commit View diff
2493 $_data['authsource'] = strtolower($_data['authsource']);
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2494
      if (!in_array($_data['authsource'], $available_authsources)){
Open commit View diff
2494 if (!in_array($_data['authsource'], $available_authsources)){
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2495
        $_SESSION['return'][] =  array(
Open commit View diff
2495 $_SESSION['return'][] = array(
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2496
          'type' => 'danger',
Open commit View diff
2496 'type' => 'danger',
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2497
          'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2497 'log' => array(__FUNCTION__, $_action, $data_log),
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2498
          'msg' => array('invalid_authsource', $setting)
Open commit View diff
2498 'msg' => array('invalid_authsource', $setting)
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2499
        );
Open commit View diff
2499 );
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2500
        return false;
Open commit View diff
2500 return false;
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2501
      }
Open commit View diff
2501 }
FreddleSpl0it over 3 years ago f0689e0

[Web] iam - add switch for direct login flow

Full commit hash
f0689e08d96f29c6e2161b1677c398187330c3b1
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2502
Open commit View diff
2502
FreddleSpl0it almost 3 years ago 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2503
      $stmt = $pdo->prepare("SELECT * FROM `mailbox`
Open commit View diff
2503 $stmt = $pdo->prepare("SELECT * FROM `mailbox`
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2504
          WHERE `authsource` != 'mailcow'
Open commit View diff
2504 WHERE `authsource` != 'mailcow'
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2505
          AND `authsource` IS NOT NULL
Open commit View diff
2505 AND `authsource` IS NOT NULL
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2506
          AND `authsource` != :authsource");
Open commit View diff
2506 AND `authsource` != :authsource");
FreddleSpl0it almost 3 years ago 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2507
      $stmt->execute(array(':authsource' => $_data['authsource']));
Open commit View diff
2507 $stmt->execute(array(':authsource' => $_data['authsource']));
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2508
      $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
2508 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2509
      if ($rows) {
Open commit View diff
2509 if ($rows) {
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2510
        $_SESSION['return'][] =  array(
Open commit View diff
2510 $_SESSION['return'][] = array(
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2511
          'type' => 'danger',
Open commit View diff
2511 'type' => 'danger',
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2512
          'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2512 'log' => array(__FUNCTION__, $_action, $data_log),
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2513
          'msg' => array('authsource_in_use', $setting)
Open commit View diff
2513 'msg' => array('authsource_in_use', $setting)
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2514
        );
Open commit View diff
2514 );
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2515
        return false;
Open commit View diff
2515 return false;
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2516
      }
Open commit View diff
2516 }
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2517
Open commit View diff
2517
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2518
      $_data['ignore_ssl_error']    = isset($_data['ignore_ssl_error']) ? boolval($_data['ignore_ssl_error']) : false;
Open commit View diff
2518 $_data['ignore_ssl_error'] = isset($_data['ignore_ssl_error']) ? boolval($_data['ignore_ssl_error']) : false;
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2519
      $_data['login_provisioning']  = isset($_data['login_provisioning']) ? boolval($_data['login_provisioning']) : false;
Open commit View diff
2519 $_data['login_provisioning'] = isset($_data['login_provisioning']) ? boolval($_data['login_provisioning']) : false;
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2520
      switch ($_data['authsource']) {
Open commit View diff
2520 switch ($_data['authsource']) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2521
        case "keycloak":
Open commit View diff
2521 case "keycloak":
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2522
          $_data['server_url']        = (!empty($_data['server_url'])) ? rtrim($_data['server_url'], '/') : null;
Open commit View diff
2522 $_data['server_url'] = (!empty($_data['server_url'])) ? rtrim($_data['server_url'], '/') : null;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2523
          $_data['mailpassword_flow'] = isset($_data['mailpassword_flow']) ? intval($_data['mailpassword_flow']) : 0;
Open commit View diff
2523 $_data['mailpassword_flow'] = isset($_data['mailpassword_flow']) ? intval($_data['mailpassword_flow']) : 0;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2524
          $_data['periodic_sync']     = isset($_data['periodic_sync']) ? intval($_data['periodic_sync']) : 0;
Open commit View diff
2524 $_data['periodic_sync'] = isset($_data['periodic_sync']) ? intval($_data['periodic_sync']) : 0;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2525
          $_data['import_users']      = isset($_data['import_users']) ? intval($_data['import_users']) : 0;
Open commit View diff
2525 $_data['import_users'] = isset($_data['import_users']) ? intval($_data['import_users']) : 0;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2526
          $_data['sync_interval']     = (!empty($_data['sync_interval'])) ? intval($_data['sync_interval']) : 15;
Open commit View diff
2526 $_data['sync_interval'] = (!empty($_data['sync_interval'])) ? intval($_data['sync_interval']) : 15;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2527
          $_data['sync_interval']     = $_data['sync_interval'] < 1 ? 1 : $_data['sync_interval'];
Open commit View diff
2527 $_data['sync_interval'] = $_data['sync_interval'] < 1 ? 1 : $_data['sync_interval'];
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2528
          $required_settings          = array('authsource', 'server_url', 'realm', 'client_id', 'client_secret', 'redirect_url', 'version', 'mailpassword_flow', 'periodic_sync', 'import_users', 'sync_interval', 'ignore_ssl_error', 'login_provisioning');
Open commit View diff
2528 $required_settings = array('authsource', 'server_url', 'realm', 'client_id', 'client_secret', 'redirect_url', 'version', 'mailpassword_flow', 'periodic_sync', 'import_users', 'sync_interval', 'ignore_ssl_error', 'login_provisioning');
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2529
        break;
Open commit View diff
2529 break;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2530
        case "generic-oidc":
Open commit View diff
2530 case "generic-oidc":
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2531
          $_data['authorize_url']     = (!empty($_data['authorize_url'])) ? $_data['authorize_url'] : null;
Open commit View diff
2531 $_data['authorize_url'] = (!empty($_data['authorize_url'])) ? $_data['authorize_url'] : null;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2532
          $_data['token_url']         = (!empty($_data['token_url'])) ? $_data['token_url'] : null;
Open commit View diff
2532 $_data['token_url'] = (!empty($_data['token_url'])) ? $_data['token_url'] : null;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2533
          $_data['userinfo_url']      = (!empty($_data['userinfo_url'])) ? $_data['userinfo_url'] : null;
Open commit View diff
2533 $_data['userinfo_url'] = (!empty($_data['userinfo_url'])) ? $_data['userinfo_url'] : null;
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2534
          $_data['client_scopes']     = (!empty($_data['client_scopes'])) ? $_data['client_scopes'] : "openid profile email mailcow_template";
Open commit View diff
2534 $_data['client_scopes'] = (!empty($_data['client_scopes'])) ? $_data['client_scopes'] : "openid profile email mailcow_template";
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2535
          $required_settings          = array('authsource', 'authorize_url', 'token_url', 'client_id', 'client_secret', 'redirect_url', 'userinfo_url', 'client_scopes', 'ignore_ssl_error', 'login_provisioning');
Open commit View diff
2535 $required_settings = array('authsource', 'authorize_url', 'token_url', 'client_id', 'client_secret', 'redirect_url', 'userinfo_url', 'client_scopes', 'ignore_ssl_error', 'login_provisioning');
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2536
        break;
Open commit View diff
2536 break;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2537
        case "ldap":
Open commit View diff
2537 case "ldap":
FreddleSpl0it over 1 year ago ec4b9b0

[Web] support multiple ldap hosts separated by comma

Full commit hash
ec4b9b088c875f967fdc160a21481361a101127b
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2538
          $_data['host']              = (!empty($_data['host'])) ? str_replace(" ", "", $_data['host']) : "";
Open commit View diff
2538 $_data['host'] = (!empty($_data['host'])) ? str_replace(" ", "", $_data['host']) : "";
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2539
          $_data['port']              = (!empty($_data['port'])) ? intval($_data['port']) : 389;
Open commit View diff
2539 $_data['port'] = (!empty($_data['port'])) ? intval($_data['port']) : 389;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2540
          $_data['username_field']    = (!empty($_data['username_field'])) ? strtolower($_data['username_field']) : "mail";
Open commit View diff
2540 $_data['username_field'] = (!empty($_data['username_field'])) ? strtolower($_data['username_field']) : "mail";
same change dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2541
          $_data['attribute_field']   = (!empty($_data['attribute_field'])) ? strtolower($_data['attribute_field']) : "";
Open commit View diff
2541 $_data['attribute_field'] = (!empty($_data['attribute_field'])) ? strtolower($_data['attribute_field']) : "";
FreddleSpl0it over 2 years ago 78e7266

[Web] add LDAP query filter

Full commit hash
78e726636844b9b63fca48f68aeeaeb1f16d0b02
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2542
          $_data['filter']            = (!empty($_data['filter'])) ? $_data['filter'] : "";
Open commit View diff
2542 $_data['filter'] = (!empty($_data['filter'])) ? $_data['filter'] : "";
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2543
          $_data['periodic_sync']     = isset($_data['periodic_sync']) ? intval($_data['periodic_sync']) : 0;
Open commit View diff
2543 $_data['periodic_sync'] = isset($_data['periodic_sync']) ? intval($_data['periodic_sync']) : 0;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2544
          $_data['import_users']      = isset($_data['import_users']) ? intval($_data['import_users']) : 0;
Open commit View diff
2544 $_data['import_users'] = isset($_data['import_users']) ? intval($_data['import_users']) : 0;
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2545
          $_data['use_ssl']           = isset($_data['use_ssl']) ? boolval($_data['use_ssl']) : false;
Open commit View diff
2545 $_data['use_ssl'] = isset($_data['use_ssl']) ? boolval($_data['use_ssl']) : false;
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2546
          $_data['use_tls']           = isset($_data['use_tls']) && !$_data['use_ssl'] ? boolval($_data['use_tls']) : false;
Open commit View diff
2546 $_data['use_tls'] = isset($_data['use_tls']) && !$_data['use_ssl'] ? boolval($_data['use_tls']) : false;
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2547
          $_data['sync_interval']     = (!empty($_data['sync_interval'])) ? intval($_data['sync_interval']) : 15;
Open commit View diff
2547 $_data['sync_interval'] = (!empty($_data['sync_interval'])) ? intval($_data['sync_interval']) : 15;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2548
          $_data['sync_interval']     = $_data['sync_interval'] < 1 ? 1 : $_data['sync_interval'];
Open commit View diff
2548 $_data['sync_interval'] = $_data['sync_interval'] < 1 ? 1 : $_data['sync_interval'];
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2549
          $required_settings          = array('authsource', 'host', 'port', 'basedn', 'username_field', 'filter', 'attribute_field', 'binddn', 'bindpass', 'periodic_sync', 'import_users', 'sync_interval', 'use_ssl', 'use_tls', 'ignore_ssl_error', 'login_provisioning');
Open commit View diff
2549 $required_settings = array('authsource', 'host', 'port', 'basedn', 'username_field', 'filter', 'attribute_field', 'binddn', 'bindpass', 'periodic_sync', 'import_users', 'sync_interval', 'use_ssl', 'use_tls', 'ignore_ssl_error', 'login_provisioning');
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2550
        break;
Open commit View diff
2550 break;
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2551
      }
Open commit View diff
2551 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2552
Open commit View diff
2552
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2553
      $pdo->beginTransaction();
Open commit View diff
2553 $pdo->beginTransaction();
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2554
      $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES (:key, :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
2554 $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES (:key, :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2555
      // add connection settings
Open commit View diff
2555 // add connection settings
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2556
      foreach($required_settings as $setting){
Open commit View diff
2556 foreach($required_settings as $setting){
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2557
        if (!isset($_data[$setting])){
Open commit View diff
2557 if (!isset($_data[$setting])){
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2558
          $_SESSION['return'][] =  array(
Open commit View diff
2558 $_SESSION['return'][] = array(
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2559
            'type' => 'danger',
Open commit View diff
2559 'type' => 'danger',
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2560
            'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2560 'log' => array(__FUNCTION__, $_action, $data_log),
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2561
            'msg' => array('required_data_missing', $setting)
Open commit View diff
2561 'msg' => array('required_data_missing', $setting)
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2562
          );
Open commit View diff
2562 );
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2563
          $pdo->rollback();
Open commit View diff
2563 $pdo->rollback();
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2564
          return false;
Open commit View diff
2564 return false;
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2565
        }
Open commit View diff
2565 }
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2566
Open commit View diff
2566
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2567
        $stmt->bindParam(':key', $setting);
Open commit View diff
2567 $stmt->bindParam(':key', $setting);
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2568
        $stmt->bindParam(':value', $_data[$setting]);
Open commit View diff
2568 $stmt->bindParam(':value', $_data[$setting]);
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2569
        $stmt->execute();
Open commit View diff
2569 $stmt->execute();
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2570
      }
Open commit View diff
2570 }
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2571
      $pdo->commit();
Open commit View diff
2571 $pdo->commit();
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2572
Open commit View diff
2572
PseudoResonance over 1 year ago 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2573
      // add redirect_url_extra
Open commit View diff
2573 // add redirect_url_extra
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2574
      if (isset($_data['redirect_url_extra'])){
Open commit View diff
2574 if (isset($_data['redirect_url_extra'])){
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2575
        $_data['redirect_url_extra'] = (!is_array($_data['redirect_url_extra'])) ? array($_data['redirect_url_extra']) : $_data['redirect_url_extra'];
Open commit View diff
2575 $_data['redirect_url_extra'] = (!is_array($_data['redirect_url_extra'])) ? array($_data['redirect_url_extra']) : $_data['redirect_url_extra'];
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2576
Open commit View diff
2576
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2577
        $redirect_url_extra = array_filter($_data['redirect_url_extra']);
Open commit View diff
2577 $redirect_url_extra = array_filter($_data['redirect_url_extra']);
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2578
        $redirect_url_extra = json_encode($redirect_url_extra);
Open commit View diff
2578 $redirect_url_extra = json_encode($redirect_url_extra);
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2579
Open commit View diff
2579
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2580
        $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('redirect_url_extra', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
2580 $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('redirect_url_extra', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2581
        $stmt->bindParam(':value', $redirect_url_extra);
Open commit View diff
2581 $stmt->bindParam(':value', $redirect_url_extra);
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2582
        $stmt->execute();
Open commit View diff
2582 $stmt->execute();
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2583
      }
Open commit View diff
2583 }
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
2584
Open commit View diff
2584
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2585
      // add default template
Open commit View diff
2585 // add default template
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2586
      if (isset($_data['default_template'])) {
Open commit View diff
2586 if (isset($_data['default_template'])) {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2587
        $_data['default_template'] = (empty($_data['default_template'])) ? "" : $_data['default_template'];
Open commit View diff
2587 $_data['default_template'] = (empty($_data['default_template'])) ? "" : $_data['default_template'];
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2588
        $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('default_template', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
2588 $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('default_template', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2589
        $stmt->bindParam(':value', $_data['default_template']);
Open commit View diff
2589 $stmt->bindParam(':value', $_data['default_template']);
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2590
        $stmt->execute();
Open commit View diff
2590 $stmt->execute();
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2591
      }
Open commit View diff
2591 }
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2592
Open commit View diff
2592
FreddleSpl0it over 3 years ago b7a1825

[Web] rename role mapping to attribute mapping

Full commit hash
b7a18255fe77a911bbdd929628c547357180df01
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2593
      // add mappers
Open commit View diff
2593 // add mappers
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2594
      if (isset($_data['mappers']) && isset($_data['templates'])){
Open commit View diff
2594 if (isset($_data['mappers']) && isset($_data['templates'])){
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2595
        $_data['mappers'] = (!is_array($_data['mappers'])) ? array($_data['mappers']) : $_data['mappers'];
Open commit View diff
2595 $_data['mappers'] = (!is_array($_data['mappers'])) ? array($_data['mappers']) : $_data['mappers'];
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2596
        $_data['templates'] = (!is_array($_data['templates'])) ? array($_data['templates']) : $_data['templates'];
Open commit View diff
2596 $_data['templates'] = (!is_array($_data['templates'])) ? array($_data['templates']) : $_data['templates'];
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2597
Open commit View diff
2597
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2598
        $mappers = array_filter($_data['mappers']);
Open commit View diff
2598 $mappers = array_filter($_data['mappers']);
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2599
        $templates = array_filter($_data['templates']);
Open commit View diff
2599 $templates = array_filter($_data['templates']);
FreddleSpl0it over 3 years ago b7a1825

[Web] rename role mapping to attribute mapping

Full commit hash
b7a18255fe77a911bbdd929628c547357180df01
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2600
        if (count($mappers) == count($templates)){
Open commit View diff
2600 if (count($mappers) == count($templates)){
same change b7a1825

[Web] rename role mapping to attribute mapping

Full commit hash
b7a18255fe77a911bbdd929628c547357180df01
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2601
          $mappers = json_encode($mappers);
Open commit View diff
2601 $mappers = json_encode($mappers);
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2602
          $templates = json_encode($templates);
Open commit View diff
2602 $templates = json_encode($templates);
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2603
Open commit View diff
2603
FreddleSpl0it over 3 years ago b7a1825

[Web] rename role mapping to attribute mapping

Full commit hash
b7a18255fe77a911bbdd929628c547357180df01
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2604
          $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('mappers', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
2604 $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('mappers', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change b7a1825

[Web] rename role mapping to attribute mapping

Full commit hash
b7a18255fe77a911bbdd929628c547357180df01
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2605
          $stmt->bindParam(':value', $mappers);
Open commit View diff
2605 $stmt->bindParam(':value', $mappers);
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2606
          $stmt->execute();
Open commit View diff
2606 $stmt->execute();
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2607
          $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('templates', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
2607 $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES ('templates', :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2608
          $stmt->bindParam(':value', $templates);
Open commit View diff
2608 $stmt->bindParam(':value', $templates);
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2609
          $stmt->execute();
Open commit View diff
2609 $stmt->execute();
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2610
        }
Open commit View diff
2610 }
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2611
      }
Open commit View diff
2611 }
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2612
Open commit View diff
2612
FreddleSpl0it about 3 years ago 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2613
      // delete old access_token
Open commit View diff
2613 // delete old access_token
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2614
      $stmt = $pdo->query("INSERT INTO identity_provider (`key`, `value`) VALUES ('access_token', '') ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
2614 $stmt = $pdo->query("INSERT INTO identity_provider (`key`, `value`) VALUES ('access_token', '') ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change 3b6a1d5

[Web] add generic-oidc provider

Full commit hash
3b6a1d50bd463b3db54403a9a3264bbcbd1af1e4
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2615
Open commit View diff
2615
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2616
      $_SESSION['return'][] =  array(
Open commit View diff
2616 $_SESSION['return'][] = array(
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2617
        'type' => 'success',
Open commit View diff
2617 'type' => 'success',
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2618
        'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2618 'log' => array(__FUNCTION__, $_action, $data_log),
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2619
        'msg' => array('object_modified', '')
Open commit View diff
2619 'msg' => array('object_modified', '')
same change 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2620
      );
Open commit View diff
2620 );
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2621
      return true;
Open commit View diff
2621 return true;
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2622
    break;
Open commit View diff
2622 break;
FreddleSpl0it over 3 years ago 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2623
    case 'test':
Open commit View diff
2623 case 'test':
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2624
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2624 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2625
        $_SESSION['return'][] = array(
Open commit View diff
2625 $_SESSION['return'][] = array(
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2626
          'type' => 'danger',
Open commit View diff
2626 'type' => 'danger',
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2627
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
2627 'log' => array(__FUNCTION__, $_action, $_data),
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2628
          'msg' => 'access_denied'
Open commit View diff
2628 'msg' => 'access_denied'
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2629
        );
Open commit View diff
2629 );
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2630
        return false;
Open commit View diff
2630 return false;
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2631
      }
Open commit View diff
2631 }
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2632
Open commit View diff
2632
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2633
      switch ($_data['authsource']) {
Open commit View diff
2633 switch ($_data['authsource']) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2634
        case 'keycloak':
Open commit View diff
2634 case 'keycloak':
FreddleSpl0it over 1 year ago 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2635
          $url = "{$_data['server_url']}/realms/{$_data['realm']}/protocol/openid-connect/token";
Open commit View diff
2635 $url = "{$_data['server_url']}/realms/{$_data['realm']}/protocol/openid-connect/token";
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2636
          $req = http_build_query(array(
Open commit View diff
2636 $req = http_build_query(array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2637
            'grant_type'    => 'client_credentials',
Open commit View diff
2637 'grant_type' => 'client_credentials',
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2638
            'client_id'     => $_data['client_id'],
Open commit View diff
2638 'client_id' => $_data['client_id'],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2639
            'client_secret' => $_data['client_secret']
Open commit View diff
2639 'client_secret' => $_data['client_secret']
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2640
          ));
Open commit View diff
2640 ));
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2641
          $curl = curl_init();
Open commit View diff
2641 $curl = curl_init();
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2642
          curl_setopt($curl, CURLOPT_URL, $url);
Open commit View diff
2642 curl_setopt($curl, CURLOPT_URL, $url);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2643
          curl_setopt($curl, CURLOPT_TIMEOUT, 7);
Open commit View diff
2643 curl_setopt($curl, CURLOPT_TIMEOUT, 7);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2644
          curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
2644 curl_setopt($curl, CURLOPT_POST, 1);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2645
          curl_setopt($curl, CURLOPT_POSTFIELDS, $req);
Open commit View diff
2645 curl_setopt($curl, CURLOPT_POSTFIELDS, $req);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2646
          curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
Open commit View diff
2646 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2647
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
2647 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
FreddleSpl0it over 1 year ago 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2648
          if ($_data['ignore_ssl_error'] == "1"){
Open commit View diff
2648 if ($_data['ignore_ssl_error'] == "1"){
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2649
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
Open commit View diff
2649 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2650
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
Open commit View diff
2650 curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2651
          }
Open commit View diff
2651 }
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2652
          $res = curl_exec($curl);
Open commit View diff
2652 $res = curl_exec($curl);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2653
          $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
Open commit View diff
2653 $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2654
          curl_close ($curl);
Open commit View diff
2654 curl_close ($curl);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2655
Open commit View diff
2655
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2656
          if ($code != 200) {
Open commit View diff
2656 if ($code != 200) {
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2657
            return false;
Open commit View diff
2657 return false;
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2658
          }
Open commit View diff
2658 }
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2659
        break;
Open commit View diff
2659 break;
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2660
        case 'generic-oidc':
Open commit View diff
2660 case 'generic-oidc':
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2661
          $url = $_data['token_url'];
Open commit View diff
2661 $url = $_data['token_url'];
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2662
          $curl = curl_init();
Open commit View diff
2662 $curl = curl_init();
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2663
          curl_setopt($curl, CURLOPT_URL, $url);
Open commit View diff
2663 curl_setopt($curl, CURLOPT_URL, $url);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2664
          curl_setopt($curl, CURLOPT_TIMEOUT, 7);
Open commit View diff
2664 curl_setopt($curl, CURLOPT_TIMEOUT, 7);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2665
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
2665 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2666
          curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
Open commit View diff
2666 curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2667
          if ($_data['ignore_ssl_error'] == "1"){
Open commit View diff
2667 if ($_data['ignore_ssl_error'] == "1"){
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2668
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
Open commit View diff
2668 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2669
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
Open commit View diff
2669 curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
same change 55dcae4

[Web] Fix Generic-OIDC connection test

Full commit hash
55dcae4a01998b3d9ed861a3f833b6b4df2567e0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2670
          }
Open commit View diff
2670 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2671
          $res = curl_exec($curl);
Open commit View diff
2671 $res = curl_exec($curl);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2672
          $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
Open commit View diff
2672 $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2673
          curl_close ($curl);
Open commit View diff
2673 curl_close ($curl);
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2674
Open commit View diff
2674
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2675
          if ($code != 200) {
Open commit View diff
2675 if ($code != 200) {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2676
            return false;
Open commit View diff
2676 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2677
          }
Open commit View diff
2677 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2678
        break;
Open commit View diff
2678 break;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2679
        case 'ldap':
Open commit View diff
2679 case 'ldap':
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2680
          if (!$_data['host'] || !$_data['port'] || !$_data['basedn'] ||
Open commit View diff
2680 if (!$_data['host'] || !$_data['port'] || !$_data['basedn'] ||
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2681
            !$_data['binddn'] || !$_data['bindpass']){
Open commit View diff
2681 !$_data['binddn'] || !$_data['bindpass']){
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2682
              return false;
Open commit View diff
2682 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2683
          }
Open commit View diff
2683 }
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2684
          $_data['use_ssl'] = isset($_data['use_ssl']) ? boolval($_data['use_ssl']) : false;
Open commit View diff
2684 $_data['use_ssl'] = isset($_data['use_ssl']) ? boolval($_data['use_ssl']) : false;
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2685
          $_data['use_tls'] = isset($_data['use_tls']) && !$_data['use_ssl'] ? boolval($_data['use_tls']) : false;
Open commit View diff
2685 $_data['use_tls'] = isset($_data['use_tls']) && !$_data['use_ssl'] ? boolval($_data['use_tls']) : false;
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2686
          $_data['ignore_ssl_error'] = isset($_data['ignore_ssl_error']) ? boolval($_data['ignore_ssl_error']) : false;
Open commit View diff
2686 $_data['ignore_ssl_error'] = isset($_data['ignore_ssl_error']) ? boolval($_data['ignore_ssl_error']) : false;
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2687
          $options = array();
Open commit View diff
2687 $options = array();
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2688
          if ($_data['ignore_ssl_error']) {
Open commit View diff
2688 if ($_data['ignore_ssl_error']) {
FreddleSpl0it almost 2 years ago 320bd31

[Web] fix LDAP "ignore ssl errors" option

Full commit hash
320bd31d372770b8abf444223b5d74376ff4c5b1
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2689
            $options[LDAP_OPT_X_TLS_REQUIRE_CERT] = LDAP_OPT_X_TLS_NEVER;
Open commit View diff
2689 $options[LDAP_OPT_X_TLS_REQUIRE_CERT] = LDAP_OPT_X_TLS_NEVER;
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2690
          }
Open commit View diff
2690 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2691
          $provider = new \LdapRecord\Connection([
Open commit View diff
2691 $provider = new \LdapRecord\Connection([
FreddleSpl0it over 1 year ago ec4b9b0

[Web] support multiple ldap hosts separated by comma

Full commit hash
ec4b9b088c875f967fdc160a21481361a101127b
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2692
            'hosts'                     => explode(",", $_data['host']),
Open commit View diff
2692 'hosts' => explode(",", $_data['host']),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2693
            'port'                      => $_data['port'],
Open commit View diff
2693 'port' => $_data['port'],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2694
            'base_dn'                   => $_data['basedn'],
Open commit View diff
2694 'base_dn' => $_data['basedn'],
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2695
            'username'                  => $_data['binddn'],
Open commit View diff
2695 'username' => $_data['binddn'],
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2696
            'password'                  => $_data['bindpass'],
Open commit View diff
2696 'password' => $_data['bindpass'],
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2697
            'use_ssl'                   => $_data['use_ssl'],
Open commit View diff
2697 'use_ssl' => $_data['use_ssl'],
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2698
            'use_tls'                   => $_data['use_tls'],
Open commit View diff
2698 'use_tls' => $_data['use_tls'],
same change 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2699
            'options'                   => $options
Open commit View diff
2699 'options' => $options
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2700
          ]);
Open commit View diff
2700 ]);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2701
          try {
Open commit View diff
2701 try {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2702
            $provider->connect();
Open commit View diff
2702 $provider->connect();
FreddleSpl0it almost 2 years ago 82fcddb

[Web] Fix catch block in LDAP connection test

Full commit hash
82fcddb177639ae1a1884094ce3d7fbb8dbbafda
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2703
          } catch (Throwable $e) {
Open commit View diff
2703 } catch (Throwable $e) {
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2704
            return false;
Open commit View diff
2704 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2705
          }
Open commit View diff
2705 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2706
        break;
Open commit View diff
2706 break;
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2707
      }
Open commit View diff
2707 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2708
Open commit View diff
2708
FreddleSpl0it over 3 years ago 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2709
      return true;
Open commit View diff
2709 return true;
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2710
    break;
Open commit View diff
2710 break;
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2711
    case "delete":
Open commit View diff
2711 case "delete":
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2712
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
2712 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2713
        $_SESSION['return'][] = array(
Open commit View diff
2713 $_SESSION['return'][] = array(
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2714
          'type' => 'danger',
Open commit View diff
2714 'type' => 'danger',
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2715
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
2715 'log' => array(__FUNCTION__, $_action, $_data),
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2716
          'msg' => 'access_denied'
Open commit View diff
2716 'msg' => 'access_denied'
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2717
        );
Open commit View diff
2717 );
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2718
        return false;
Open commit View diff
2718 return false;
same change 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2719
      }
Open commit View diff
2719 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2720
Open commit View diff
2720
FreddleSpl0it almost 3 years ago 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2721
      $stmt = $pdo->query("SELECT * FROM `mailbox`
Open commit View diff
2721 $stmt = $pdo->query("SELECT * FROM `mailbox`
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2722
          WHERE `authsource` != 'mailcow'
Open commit View diff
2722 WHERE `authsource` != 'mailcow'
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2723
          AND `authsource` IS NOT NULL");
Open commit View diff
2723 AND `authsource` IS NOT NULL");
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2724
      $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
2724 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2725
      if ($rows) {
Open commit View diff
2725 if ($rows) {
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2726
        $_SESSION['return'][] =  array(
Open commit View diff
2726 $_SESSION['return'][] = array(
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2727
          'type' => 'danger',
Open commit View diff
2727 'type' => 'danger',
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2728
          'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2728 'log' => array(__FUNCTION__, $_action, $data_log),
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2729
          'msg' => array('authsource_in_use', $setting)
Open commit View diff
2729 'msg' => array('authsource_in_use', $setting)
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2730
        );
Open commit View diff
2730 );
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2731
        return false;
Open commit View diff
2731 return false;
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2732
      }
Open commit View diff
2732 }
FreddleSpl0it over 3 years ago 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2733
Open commit View diff
2733
FreddleSpl0it almost 3 years ago 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2734
      $stmt = $pdo->query("DELETE FROM identity_provider;");
Open commit View diff
2734 $stmt = $pdo->query("DELETE FROM identity_provider;");
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2735
Open commit View diff
2735
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2736
      $_SESSION['return'][] =  array(
Open commit View diff
2736 $_SESSION['return'][] = array(
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2737
        'type' => 'success',
Open commit View diff
2737 'type' => 'success',
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2738
        'log' => array(__FUNCTION__, $_action, $data_log),
Open commit View diff
2738 'log' => array(__FUNCTION__, $_action, $data_log),
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2739
        'msg' => array('item_deleted', '')
Open commit View diff
2739 'msg' => array('item_deleted', '')
same change 04e2494

deny changes on identity provider if it's in use

Full commit hash
04e2494af8abb732f2b6808a266fa0d775542977
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2740
      );
Open commit View diff
2740 );
FreddleSpl0it over 3 years ago 3c62a7f

[Web] IAM - add delete option & fix test connection

Full commit hash
3c62a7fd9f67592371f2334e04cf7dbcfa328073
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2741
      return true;
Open commit View diff
2741 return true;
FreddleSpl0it over 3 years ago 6e9980b

[Web] add manage identity provider

Full commit hash
6e9980bf0f8b16420cc884e12889b074c7b8bc79
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2742
    break;
Open commit View diff
2742 break;
FreddleSpl0it over 3 years ago dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2743
    case "init":
Open commit View diff
2743 case "init":
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2744
      $settings = identity_provider('get');
Open commit View diff
2744 $settings = identity_provider('get');
FreddleSpl0it over 3 years ago dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2745
      $provider = null;
Open commit View diff
2745 $provider = null;
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2746
Open commit View diff
2746
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2747
      switch ($settings['authsource']) {
Open commit View diff
2747 switch ($settings['authsource']) {
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2748
        case "keycloak":
Open commit View diff
2748 case "keycloak":
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2749
          if ($settings['server_url'] && $settings['realm'] && $settings['client_id'] &&
Open commit View diff
2749 if ($settings['server_url'] && $settings['realm'] && $settings['client_id'] &&
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2750
            $settings['client_secret'] && $settings['redirect_url'] && $settings['version']){
Open commit View diff
2750 $settings['client_secret'] && $settings['redirect_url'] && $settings['version']){
FreddleSpl0it over 1 year ago c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2751
            $guzzyClient = new GuzzleHttp\Client([
Open commit View diff
2751 $guzzyClient = new GuzzleHttp\Client([
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2752
              'defaults' => [
Open commit View diff
2752 'defaults' => [
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2753
                \GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 5,
Open commit View diff
2753 \GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 5,
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2754
                \GuzzleHttp\RequestOptions::ALLOW_REDIRECTS => true],
Open commit View diff
2754 \GuzzleHttp\RequestOptions::ALLOW_REDIRECTS => true],
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2755
                \GuzzleHttp\RequestOptions::VERIFY => !$settings['ignore_ssl_error'],
Open commit View diff
2755 \GuzzleHttp\RequestOptions::VERIFY => !$settings['ignore_ssl_error'],
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2756
              ]
Open commit View diff
2756 ]
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2757
            );
Open commit View diff
2757 );
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2758
            $provider = new Stevenmaguire\OAuth2\Client\Provider\Keycloak([
Open commit View diff
2758 $provider = new Stevenmaguire\OAuth2\Client\Provider\Keycloak([
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2759
              'authServerUrl'         => $settings['server_url'],
Open commit View diff
2759 'authServerUrl' => $settings['server_url'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2760
              'realm'                 => $settings['realm'],
Open commit View diff
2760 'realm' => $settings['realm'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2761
              'clientId'              => $settings['client_id'],
Open commit View diff
2761 'clientId' => $settings['client_id'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2762
              'clientSecret'          => $settings['client_secret'],
Open commit View diff
2762 'clientSecret' => $settings['client_secret'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2763
              'redirectUri'           => $settings['redirect_url'],
Open commit View diff
2763 'redirectUri' => $settings['redirect_url'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2764
              'version'               => $settings['version'],
Open commit View diff
2764 'version' => $settings['version'],
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2765
              // 'encryptionAlgorithm'   => 'RS256',                             // optional
Open commit View diff
2765 // 'encryptionAlgorithm' => 'RS256', // optional
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2766
              // 'encryptionKeyPath'     => '../key.pem'                         // optional
Open commit View diff
2766 // 'encryptionKeyPath' => '../key.pem' // optional
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2767
              // 'encryptionKey'         => 'contents_of_key_or_certificate'     // optional
Open commit View diff
2767 // 'encryptionKey' => 'contents_of_key_or_certificate' // optional
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2768
            ]);
Open commit View diff
2768 ]);
FreddleSpl0it over 1 year ago c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2769
            $provider->setHttpClient($guzzyClient);
Open commit View diff
2769 $provider->setHttpClient($guzzyClient);
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2770
          }
Open commit View diff
2770 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2771
        break;
Open commit View diff
2771 break;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2772
        case "generic-oidc":
Open commit View diff
2772 case "generic-oidc":
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2773
          if ($settings['client_id'] && $settings['client_secret'] && $settings['redirect_url'] &&
Open commit View diff
2773 if ($settings['client_id'] && $settings['client_secret'] && $settings['redirect_url'] &&
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2774
            $settings['authorize_url'] && $settings['token_url'] && $settings['userinfo_url']){
Open commit View diff
2774 $settings['authorize_url'] && $settings['token_url'] && $settings['userinfo_url']){
FreddleSpl0it over 1 year ago c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2775
            $guzzyClient = new GuzzleHttp\Client([
Open commit View diff
2775 $guzzyClient = new GuzzleHttp\Client([
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2776
              'defaults' => [
Open commit View diff
2776 'defaults' => [
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2777
                \GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 5,
Open commit View diff
2777 \GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 5,
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2778
                \GuzzleHttp\RequestOptions::ALLOW_REDIRECTS => true],
Open commit View diff
2778 \GuzzleHttp\RequestOptions::ALLOW_REDIRECTS => true],
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2779
                \GuzzleHttp\RequestOptions::VERIFY => !$settings['ignore_ssl_error'],
Open commit View diff
2779 \GuzzleHttp\RequestOptions::VERIFY => !$settings['ignore_ssl_error'],
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2780
              ]
Open commit View diff
2780 ]
same change c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2781
            );
Open commit View diff
2781 );
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2782
            $provider = new \League\OAuth2\Client\Provider\GenericProvider([
Open commit View diff
2782 $provider = new \League\OAuth2\Client\Provider\GenericProvider([
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2783
              'clientId'                => $settings['client_id'],
Open commit View diff
2783 'clientId' => $settings['client_id'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2784
              'clientSecret'            => $settings['client_secret'],
Open commit View diff
2784 'clientSecret' => $settings['client_secret'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2785
              'redirectUri'             => $settings['redirect_url'],
Open commit View diff
2785 'redirectUri' => $settings['redirect_url'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2786
              'urlAuthorize'            => $settings['authorize_url'],
Open commit View diff
2786 'urlAuthorize' => $settings['authorize_url'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2787
              'urlAccessToken'          => $settings['token_url'],
Open commit View diff
2787 'urlAccessToken' => $settings['token_url'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2788
              'urlResourceOwnerDetails' => $settings['userinfo_url'],
Open commit View diff
2788 'urlResourceOwnerDetails' => $settings['userinfo_url'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2789
              'scopes'                  => $settings['client_scopes']
Open commit View diff
2789 'scopes' => $settings['client_scopes']
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2790
            ]);
Open commit View diff
2790 ]);
FreddleSpl0it over 1 year ago c8c4cfd

[Web] add ignore ssl option for keycloak and generic-oidc provider

Full commit hash
c8c4cfd939a5c4fd91cbe0c892a9cc9614314f0e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2791
            $provider->setHttpClient($guzzyClient);
Open commit View diff
2791 $provider->setHttpClient($guzzyClient);
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2792
          }
Open commit View diff
2792 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2793
        break;
Open commit View diff
2793 break;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2794
        case "ldap":
Open commit View diff
2794 case "ldap":
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2795
          if ($settings['host'] && $settings['port'] && $settings['basedn'] &&
Open commit View diff
2795 if ($settings['host'] && $settings['port'] && $settings['basedn'] &&
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2796
            $settings['binddn'] && $settings['bindpass']){
Open commit View diff
2796 $settings['binddn'] && $settings['bindpass']){
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2797
            $options = array();
Open commit View diff
2797 $options = array();
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2798
            if ($settings['ignore_ssl_error']) {
Open commit View diff
2798 if ($settings['ignore_ssl_error']) {
FreddleSpl0it almost 2 years ago 320bd31

[Web] fix LDAP "ignore ssl errors" option

Full commit hash
320bd31d372770b8abf444223b5d74376ff4c5b1
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2799
              $options[LDAP_OPT_X_TLS_REQUIRE_CERT] = LDAP_OPT_X_TLS_NEVER;
Open commit View diff
2799 $options[LDAP_OPT_X_TLS_REQUIRE_CERT] = LDAP_OPT_X_TLS_NEVER;
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2800
            }
Open commit View diff
2800 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2801
            $provider = new \LdapRecord\Connection([
Open commit View diff
2801 $provider = new \LdapRecord\Connection([
FreddleSpl0it over 1 year ago ec4b9b0

[Web] support multiple ldap hosts separated by comma

Full commit hash
ec4b9b088c875f967fdc160a21481361a101127b
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2802
              'hosts'                     => explode(",", $settings['host']),
Open commit View diff
2802 'hosts' => explode(",", $settings['host']),
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2803
              'port'                      => $settings['port'],
Open commit View diff
2803 'port' => $settings['port'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2804
              'base_dn'                   => $settings['basedn'],
Open commit View diff
2804 'base_dn' => $settings['basedn'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2805
              'username'                  => $settings['binddn'],
Open commit View diff
2805 'username' => $settings['binddn'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2806
              'password'                  => $settings['bindpass'],
Open commit View diff
2806 'password' => $settings['bindpass'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2807
              'use_ssl'                   => $settings['use_ssl'],
Open commit View diff
2807 'use_ssl' => $settings['use_ssl'],
same change 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2808
              'use_tls'                   => $settings['use_tls'],
Open commit View diff
2808 'use_tls' => $settings['use_tls'],
FreddleSpl0it over 2 years ago 2ba64e9

[Web] allow SSL / TLS connections for LDAP

Full commit hash
2ba64e93f9f7a152cc32e3e9fb79eaee88bb8d9d
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2809
              'options'                   => $options
Open commit View diff
2809 'options' => $options
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2810
            ]);
Open commit View diff
2810 ]);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2811
            try {
Open commit View diff
2811 try {
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2812
              $provider->connect();
Open commit View diff
2812 $provider->connect();
FreddleSpl0it over 2 years ago 916d0fd

[Web] catch all exceptions on ldap connect

Full commit hash
916d0fd46aa47b3a72800bf040db5309a13ed87a
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2813
            } catch (Throwable $e) {
Open commit View diff
2813 } catch (Throwable $e) {
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2814
              $provider = null;
Open commit View diff
2814 $provider = null;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2815
            }
Open commit View diff
2815 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2816
          }
Open commit View diff
2816 }
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2817
        break;
Open commit View diff
2817 break;
FreddleSpl0it over 3 years ago dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2818
      }
Open commit View diff
2818 }
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2819
      return $provider;
Open commit View diff
2819 return $provider;
same change dca5f1b

[Web] move /process/login to internal endpoint

Full commit hash
dca5f1baab2ed5a0d5e8309df6b2909a15ed70a4
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
2820
    break;
Open commit View diff
2820 break;
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2821
    case "verify-sso":
Open commit View diff
2821 case "verify-sso":
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2822
      if ($iam_settings['authsource'] != 'keycloak' && $iam_settings['authsource'] != 'generic-oidc'){
Open commit View diff
2822 if ($iam_settings['authsource'] != 'keycloak' && $iam_settings['authsource'] != 'generic-oidc'){
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2823
        $_SESSION['return'][] =  array(
Open commit View diff
2823 $_SESSION['return'][] = array(
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2824
          'type' => 'danger',
Open commit View diff
2824 'type' => 'danger',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2825
          'log' => array(__FUNCTION__, "no OIDC provider configured"),
Open commit View diff
2825 'log' => array(__FUNCTION__, "no OIDC provider configured"),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2826
          'msg' => 'login_failed'
Open commit View diff
2826 'msg' => 'login_failed'
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2827
        );
Open commit View diff
2827 );
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2828
        return false;
Open commit View diff
2828 return false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2829
      }
Open commit View diff
2829 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2830
Open commit View diff
2830
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2831
      try {
Open commit View diff
2831 try {
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2832
        $token = $iam_provider->getAccessToken('authorization_code', ['code' => $_GET['code']]);
Open commit View diff
2832 $token = $iam_provider->getAccessToken('authorization_code', ['code' => $_GET['code']]);
FreddleSpl0it over 1 year ago 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2833
        $plain_token = $token->getToken();
Open commit View diff
2833 $plain_token = $token->getToken();
same change 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2834
        $plain_refreshtoken = $token->getRefreshToken();
Open commit View diff
2834 $plain_refreshtoken = $token->getRefreshToken();
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2835
        $info = $iam_provider->getResourceOwner($token)->toArray();
Open commit View diff
2835 $info = $iam_provider->getResourceOwner($token)->toArray();
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2836
      } catch (Throwable $e) {
Open commit View diff
2836 } catch (Throwable $e) {
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2837
        $_SESSION['return'][] =  array(
Open commit View diff
2837 $_SESSION['return'][] = array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2838
          'type' => 'danger',
Open commit View diff
2838 'type' => 'danger',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2839
          'log' => array(__FUNCTION__, $e->getMessage()),
Open commit View diff
2839 'log' => array(__FUNCTION__, $e->getMessage()),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2840
          'msg' => 'login_failed'
Open commit View diff
2840 'msg' => 'login_failed'
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2841
        );
Open commit View diff
2841 );
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2842
        return false;
Open commit View diff
2842 return false;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2843
      }
Open commit View diff
2843 }
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2844
      // check if email address is given
Open commit View diff
2844 // check if email address is given
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2845
      if (empty($info['email'])) {
Open commit View diff
2845 if (empty($info['email'])) {
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2846
        $_SESSION['return'][] =  array(
Open commit View diff
2846 $_SESSION['return'][] = array(
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2847
          'type' => 'danger',
Open commit View diff
2847 'type' => 'danger',
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2848
          'log' => array(__FUNCTION__, 'No email address found for user'),
Open commit View diff
2848 'log' => array(__FUNCTION__, 'No email address found for user'),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2849
          'msg' => 'login_failed'
Open commit View diff
2849 'msg' => 'login_failed'
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2850
        );
Open commit View diff
2850 );
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2851
        return false;
Open commit View diff
2851 return false;
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2852
      }
Open commit View diff
2852 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2853
Open commit View diff
2853
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2854
      // get mapped template
Open commit View diff
2854 // get mapped template
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2855
      $user_template = $info['mailcow_template'];
Open commit View diff
2855 $user_template = $info['mailcow_template'];
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2856
      $mapper_key = array_search($user_template, $iam_settings['mappers']);
Open commit View diff
2856 $mapper_key = array_search($user_template, $iam_settings['mappers']);
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2857
Open commit View diff
2857
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2858
      // token valid, get mailbox
Open commit View diff
2858 // token valid, get mailbox
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2859
      $stmt = $pdo->prepare("SELECT
Open commit View diff
2859 $stmt = $pdo->prepare("SELECT
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2860
        mailbox.*,
Open commit View diff
2860 mailbox.*,
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2861
        domain.active AS d_active
Open commit View diff
2861 domain.active AS d_active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2862
        FROM `mailbox`
Open commit View diff
2862 FROM `mailbox`
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2863
        INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
2863 INNER JOIN domain on mailbox.domain = domain.domain
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2864
        WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
2864 WHERE `kind` NOT REGEXP 'location|thing|group'
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2865
          AND `username` = :user");
Open commit View diff
2865 AND `username` = :user");
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2866
      $stmt->execute(array(':user' => $info['email']));
Open commit View diff
2866 $stmt->execute(array(':user' => $info['email']));
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2867
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
2867 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2868
      if ($row){
Open commit View diff
2868 if ($row){
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2869
        if (!in_array($row['authsource'], array("keycloak", "generic-oidc"))) {
Open commit View diff
2869 if (!in_array($row['authsource'], array("keycloak", "generic-oidc"))) {
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2870
          clear_session();
Open commit View diff
2870 clear_session();
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2871
          $_SESSION['return'][] =  array(
Open commit View diff
2871 $_SESSION['return'][] = array(
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2872
            'type' => 'danger',
Open commit View diff
2872 'type' => 'danger',
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2873
            'log' => array(__FUNCTION__, $info['email'], "The user's authentication source is not of type OIDC"),
Open commit View diff
2873 'log' => array(__FUNCTION__, $info['email'], "The user's authentication source is not of type OIDC"),
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2874
            'msg' => 'login_failed'
Open commit View diff
2874 'msg' => 'login_failed'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2875
          );
Open commit View diff
2875 );
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2876
          return false;
Open commit View diff
2876 return false;
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2877
        }
Open commit View diff
2877 }
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2878
        if ($mapper_key !== false) {
Open commit View diff
2878 if ($mapper_key !== false) {
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2879
          // update user
Open commit View diff
2879 // update user
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2880
          $_SESSION['access_all_exception'] = '1';
Open commit View diff
2880 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2881
          mailbox('edit', 'mailbox_from_template', array(
Open commit View diff
2881 mailbox('edit', 'mailbox_from_template', array(
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2882
            'username' => $info['email'],
Open commit View diff
2882 'username' => $info['email'],
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2883
            'name' => $info['name'],
Open commit View diff
2883 'name' => $info['name'],
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2884
            'template' => $iam_settings['templates'][$mapper_key]
Open commit View diff
2884 'template' => $iam_settings['templates'][$mapper_key]
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2885
          ));
Open commit View diff
2885 ));
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2886
          $_SESSION['access_all_exception'] = '0';
Open commit View diff
2886 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2887
Open commit View diff
2887
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2888
          // get updated row
Open commit View diff
2888 // get updated row
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2889
          $stmt = $pdo->prepare("SELECT
Open commit View diff
2889 $stmt = $pdo->prepare("SELECT
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2890
            mailbox.*,
Open commit View diff
2890 mailbox.*,
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2891
            domain.active AS d_active
Open commit View diff
2891 domain.active AS d_active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2892
            FROM `mailbox`
Open commit View diff
2892 FROM `mailbox`
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2893
            INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
2893 INNER JOIN domain on mailbox.domain = domain.domain
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2894
            WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
2894 WHERE `kind` NOT REGEXP 'location|thing|group'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2895
              AND `username` = :user");
Open commit View diff
2895 AND `username` = :user");
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2896
          $stmt->execute(array(':user' => $info['email']));
Open commit View diff
2896 $stmt->execute(array(':user' => $info['email']));
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2897
          $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
2897 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2898
        }
Open commit View diff
2898 }
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2899
        if ($row['active'] != 1 || $row['d_active'] != 1) {
Open commit View diff
2899 if ($row['active'] != 1 || $row['d_active'] != 1) {
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2900
          clear_session();
Open commit View diff
2900 clear_session();
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2901
          $_SESSION['return'][] =  array(
Open commit View diff
2901 $_SESSION['return'][] = array(
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2902
            'type' => 'danger',
Open commit View diff
2902 'type' => 'danger',
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2903
            'log' => array(__FUNCTION__, $info['email'], 'Domain or mailbox is inactive'),
Open commit View diff
2903 'log' => array(__FUNCTION__, $info['email'], 'Domain or mailbox is inactive'),
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2904
            'msg' => 'login_failed'
Open commit View diff
2904 'msg' => 'login_failed'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2905
          );
Open commit View diff
2905 );
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2906
          return false;
Open commit View diff
2906 return false;
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2907
        }
Open commit View diff
2907 }
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2908
        set_user_loggedin_session($info['email']);
Open commit View diff
2908 set_user_loggedin_session($info['email']);
FreddleSpl0it over 1 year ago 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2909
        $_SESSION['iam_token'] = $plain_token;
Open commit View diff
2909 $_SESSION['iam_token'] = $plain_token;
same change 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2910
        $_SESSION['iam_refresh_token'] = $plain_refreshtoken;
Open commit View diff
2910 $_SESSION['iam_refresh_token'] = $plain_refreshtoken;
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2911
        $_SESSION['return'][] =  array(
Open commit View diff
2911 $_SESSION['return'][] = array(
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2912
          'type' => 'success',
Open commit View diff
2912 'type' => 'success',
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2913
          'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
Open commit View diff
2913 'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2914
          'msg' => array('logged_in_as', $_SESSION['mailcow_cc_username'])
Open commit View diff
2914 'msg' => array('logged_in_as', $_SESSION['mailcow_cc_username'])
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2915
        );
Open commit View diff
2915 );
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2916
        return true;
Open commit View diff
2916 return true;
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2917
      }
Open commit View diff
2917 }
same change 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2918
Open commit View diff
2918
FreddleSpl0it about 1 year ago 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2919
      // user doesn't exist, check if login provisioning is enabled
Open commit View diff
2919 // user doesn't exist, check if login provisioning is enabled
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2920
      if (!$iam_settings['login_provisioning']){
Open commit View diff
2920 if (!$iam_settings['login_provisioning']){
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2921
        $_SESSION['return'][] =  array(
Open commit View diff
2921 $_SESSION['return'][] = array(
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2922
          'type' => 'danger',
Open commit View diff
2922 'type' => 'danger',
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2923
          'log' => array(__FUNCTION__, "Auto-create users on login is deactivated"),
Open commit View diff
2923 'log' => array(__FUNCTION__, "Auto-create users on login is deactivated"),
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2924
          'msg' => 'login_failed'
Open commit View diff
2924 'msg' => 'login_failed'
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2925
        );
Open commit View diff
2925 );
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2926
        return false;
Open commit View diff
2926 return false;
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2927
      }
Open commit View diff
2927 }
same change 1b2f424

[Web] Add identity_provider option to disable auto-creation of users on login

Full commit hash
1b2f424edc7b5f91c450b36b5cf64f012e7b821b
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
2928
Open commit View diff
2928
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2929
      if (empty($iam_settings['mappers']) || empty($user_template) || $mapper_key === false){
Open commit View diff
2929 if (empty($iam_settings['mappers']) || empty($user_template) || $mapper_key === false){
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2930
        if (!empty($iam_settings['default_template'])) {
Open commit View diff
2930 if (!empty($iam_settings['default_template'])) {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2931
          $mbox_template = $iam_settings['default_template'];
Open commit View diff
2931 $mbox_template = $iam_settings['default_template'];
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2932
        } else {
Open commit View diff
2932 } else {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2933
          clear_session();
Open commit View diff
2933 clear_session();
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2934
          $_SESSION['return'][] =  array(
Open commit View diff
2934 $_SESSION['return'][] = array(
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2935
            'type' => 'danger',
Open commit View diff
2935 'type' => 'danger',
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2936
            'log' => array(__FUNCTION__, $info['email'], 'No matching attribute mapping was found'),
Open commit View diff
2936 'log' => array(__FUNCTION__, $info['email'], 'No matching attribute mapping was found'),
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2937
            'msg' => 'login_failed'
Open commit View diff
2937 'msg' => 'login_failed'
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2938
          );
Open commit View diff
2938 );
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2939
          return false;
Open commit View diff
2939 return false;
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2940
        }
Open commit View diff
2940 }
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2941
      } else {
Open commit View diff
2941 } else {
same change 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2942
        $mbox_template = $iam_settings['templates'][$mapper_key];
Open commit View diff
2942 $mbox_template = $iam_settings['templates'][$mapper_key];
FreddleSpl0it over 1 year ago f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2943
      }
Open commit View diff
2943 }
same change f36184d

[Web] update mailbox on idp login

Full commit hash
f36184df64eb6481c23a9fc11fd06569c62d118c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2944
Open commit View diff
2944
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2945
      // create mailbox
Open commit View diff
2945 // create mailbox
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2946
      $_SESSION['access_all_exception'] = '1';
Open commit View diff
2946 $_SESSION['access_all_exception'] = '1';
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2947
      $create_res = mailbox('add', 'mailbox_from_template', array(
Open commit View diff
2947 $create_res = mailbox('add', 'mailbox_from_template', array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2948
        'domain' => explode('@', $info['email'])[1],
Open commit View diff
2948 'domain' => explode('@', $info['email'])[1],
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2949
        'local_part' => explode('@', $info['email'])[0],
Open commit View diff
2949 'local_part' => explode('@', $info['email'])[0],
FreddleSpl0it over 1 year ago 45c13c6

[Web] update user based on template after login

Full commit hash
45c13c687b7c294d24708cd44eb05062d0862d33
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2950
        'name' => $info['name'],
Open commit View diff
2950 'name' => $info['name'],
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2951
        'authsource' => $iam_settings['authsource'],
Open commit View diff
2951 'authsource' => $iam_settings['authsource'],
FreddleSpl0it over 1 year ago 887b711

Add default template for IdP attribute mapping

Full commit hash
887b7114a8bdd74a81f9ce7a6c5e006e28e135c0
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2952
        'template' => $mbox_template
Open commit View diff
2952 'template' => $mbox_template
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2953
      ));
Open commit View diff
2953 ));
FreddleSpl0it over 1 year ago 8048e0a

[Web] Fix permission exception in IdP actions

Full commit hash
8048e0a53c793ed587cba0b5ee5eadb80efed88e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2954
      $_SESSION['access_all_exception'] = '0';
Open commit View diff
2954 $_SESSION['access_all_exception'] = '0';
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2955
      if (!$create_res){
Open commit View diff
2955 if (!$create_res){
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2956
        clear_session();
Open commit View diff
2956 clear_session();
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2957
        $_SESSION['return'][] =  array(
Open commit View diff
2957 $_SESSION['return'][] = array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2958
          'type' => 'danger',
Open commit View diff
2958 'type' => 'danger',
FreddleSpl0it over 1 year ago 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2959
          'log' => array(__FUNCTION__, $info['email'], 'Could not create mailbox on login'),
Open commit View diff
2959 'log' => array(__FUNCTION__, $info['email'], 'Could not create mailbox on login'),
same change 2596b9d

[Web] Improve auth logging and language strings

Full commit hash
2596b9d3860ed5804f25ae77c1d5f1e3af50c24f
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2960
          'msg' => 'login_failed'
Open commit View diff
2960 'msg' => 'login_failed'
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2961
        );
Open commit View diff
2961 );
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2962
        return false;
Open commit View diff
2962 return false;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2963
      }
Open commit View diff
2963 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2964
Open commit View diff
2964
FreddleSpl0it over 1 year ago cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2965
      // double check if mailbox and domain is active
Open commit View diff
2965 // double check if mailbox and domain is active
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2966
      $stmt = $pdo->prepare("SELECT * FROM `mailbox`
Open commit View diff
2966 $stmt = $pdo->prepare("SELECT * FROM `mailbox`
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2967
      INNER JOIN domain on mailbox.domain = domain.domain
Open commit View diff
2967 INNER JOIN domain on mailbox.domain = domain.domain
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2968
      WHERE `kind` NOT REGEXP 'location|thing|group'
Open commit View diff
2968 WHERE `kind` NOT REGEXP 'location|thing|group'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2969
        AND `mailbox`.`active`='1'
Open commit View diff
2969 AND `mailbox`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2970
        AND `domain`.`active`='1'
Open commit View diff
2970 AND `domain`.`active`='1'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2971
        AND `username` = :user");
Open commit View diff
2971 AND `username` = :user");
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2972
      $stmt->execute(array(':user' => $info['email']));
Open commit View diff
2972 $stmt->execute(array(':user' => $info['email']));
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2973
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
2973 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2974
      if (empty($row)) {
Open commit View diff
2974 if (empty($row)) {
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2975
        clear_session();
Open commit View diff
2975 clear_session();
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2976
        $_SESSION['return'][] =  array(
Open commit View diff
2976 $_SESSION['return'][] = array(
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2977
          'type' => 'danger',
Open commit View diff
2977 'type' => 'danger',
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2978
          'log' => array(__FUNCTION__, $info['email'], 'Domain or mailbox is inactive'),
Open commit View diff
2978 'log' => array(__FUNCTION__, $info['email'], 'Domain or mailbox is inactive'),
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2979
          'msg' => 'login_failed'
Open commit View diff
2979 'msg' => 'login_failed'
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2980
        );
Open commit View diff
2980 );
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2981
        return false;
Open commit View diff
2981 return false;
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2982
      }
Open commit View diff
2982 }
same change cb08132

[Web] Fix authentication when mailbox or domain is deactivated

Full commit hash
cb08132a74db2ccfacbacd558066be602b447cfa
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2983
Open commit View diff
2983
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
2984
      set_user_loggedin_session($info['email']);
Open commit View diff
2984 set_user_loggedin_session($info['email']);
FreddleSpl0it over 1 year ago 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2985
      $_SESSION['iam_token'] = $plain_token;
Open commit View diff
2985 $_SESSION['iam_token'] = $plain_token;
same change 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2986
      $_SESSION['iam_refresh_token'] = $plain_refreshtoken;
Open commit View diff
2986 $_SESSION['iam_refresh_token'] = $plain_refreshtoken;
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2987
      $_SESSION['return'][] =  array(
Open commit View diff
2987 $_SESSION['return'][] = array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2988
        'type' => 'success',
Open commit View diff
2988 'type' => 'success',
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2989
        'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
Open commit View diff
2989 'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2990
        'msg' => array('logged_in_as', $_SESSION['mailcow_cc_username'])
Open commit View diff
2990 'msg' => array('logged_in_as', $_SESSION['mailcow_cc_username'])
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2991
      );
Open commit View diff
2991 );
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2992
      return true;
Open commit View diff
2992 return true;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2993
    break;
Open commit View diff
2993 break;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2994
    case "refresh-token":
Open commit View diff
2994 case "refresh-token":
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2995
      try {
Open commit View diff
2995 try {
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2996
        $token = $iam_provider->getAccessToken('refresh_token', ['refresh_token' => $_SESSION['iam_refresh_token']]);
Open commit View diff
2996 $token = $iam_provider->getAccessToken('refresh_token', ['refresh_token' => $_SESSION['iam_refresh_token']]);
FreddleSpl0it over 1 year ago 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2997
        $plain_token = $token->getToken();
Open commit View diff
2997 $plain_token = $token->getToken();
same change 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2998
        $plain_refreshtoken = $token->getRefreshToken();
Open commit View diff
2998 $plain_refreshtoken = $token->getRefreshToken();
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2999
        $info = $iam_provider->getResourceOwner($token)->toArray();
Open commit View diff
2999 $info = $iam_provider->getResourceOwner($token)->toArray();
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3000
      } catch (Throwable $e) {
Open commit View diff
3000 } catch (Throwable $e) {
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3001
        clear_session();
Open commit View diff
3001 clear_session();
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3002
        $_SESSION['return'][] =  array(
Open commit View diff
3002 $_SESSION['return'][] = array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3003
          'type' => 'danger',
Open commit View diff
3003 'type' => 'danger',
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3004
          'log' => array(__FUNCTION__),
Open commit View diff
3004 'log' => array(__FUNCTION__),
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3005
          'msg' => array('refresh_login_failed', $e->getMessage())
Open commit View diff
3005 'msg' => array('refresh_login_failed', $e->getMessage())
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3006
        );
Open commit View diff
3006 );
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3007
        return false;
Open commit View diff
3007 return false;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3008
      }
Open commit View diff
3008 }
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3009
Open commit View diff
3009
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3010
      if (empty($info['email'])){
Open commit View diff
3010 if (empty($info['email'])){
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3011
        clear_session();
Open commit View diff
3011 clear_session();
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3012
        $_SESSION['return'][] =  array(
Open commit View diff
3012 $_SESSION['return'][] = array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3013
          'type' => 'danger',
Open commit View diff
3013 'type' => 'danger',
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3014
          'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
Open commit View diff
3014 'log' => array(__FUNCTION__, $_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role']),
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3015
          'msg' => 'refresh_login_failed'
Open commit View diff
3015 'msg' => 'refresh_login_failed'
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3016
        );
Open commit View diff
3016 );
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3017
        return false;
Open commit View diff
3017 return false;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3018
      }
Open commit View diff
3018 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3019
Open commit View diff
3019
FreddleSpl0it over 1 year ago 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3020
      set_user_loggedin_session($info['email']);
Open commit View diff
3020 set_user_loggedin_session($info['email']);
same change 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3021
      $_SESSION['iam_token'] = $plain_token;
Open commit View diff
3021 $_SESSION['iam_token'] = $plain_token;
same change 83e53eb

[Web] fix incomplete session on broken logins

Full commit hash
83e53eb524c816b9b99209bb1a5000ea8821b9e1
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3022
      $_SESSION['iam_refresh_token'] = $plain_refreshtoken;
Open commit View diff
3022 $_SESSION['iam_refresh_token'] = $plain_refreshtoken;
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3023
      return true;
Open commit View diff
3023 return true;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3024
    break;
Open commit View diff
3024 break;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3025
    case "get-redirect":
Open commit View diff
3025 case "get-redirect":
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3026
      if ($iam_settings['authsource'] != 'keycloak' && $iam_settings['authsource'] != 'generic-oidc')
Open commit View diff
3026 if ($iam_settings['authsource'] != 'keycloak' && $iam_settings['authsource'] != 'generic-oidc')
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3027
        return false;
Open commit View diff
3027 return false;
PseudoResonance over 1 year ago 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3028
      $options = [];
Open commit View diff
3028 $options = [];
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3029
      if (isset($iam_settings['redirect_url_extra'])) {
Open commit View diff
3029 if (isset($iam_settings['redirect_url_extra'])) {
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3030
        // check if the current domain is used in an extra redirect URL
Open commit View diff
3030 // check if the current domain is used in an extra redirect URL
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3031
        $targetDomain = strtolower($_SERVER['HTTP_HOST']);
Open commit View diff
3031 $targetDomain = strtolower($_SERVER['HTTP_HOST']);
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3032
        foreach ($iam_settings['redirect_url_extra'] as $testUrl) {
Open commit View diff
3032 foreach ($iam_settings['redirect_url_extra'] as $testUrl) {
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3033
          $testUrlParsed = parse_url($testUrl);
Open commit View diff
3033 $testUrlParsed = parse_url($testUrl);
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3034
          if (isset($testUrlParsed['host']) && strtolower($testUrlParsed['host']) == $targetDomain) {
Open commit View diff
3034 if (isset($testUrlParsed['host']) && strtolower($testUrlParsed['host']) == $targetDomain) {
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3035
            $options['redirect_uri'] = $testUrl;
Open commit View diff
3035 $options['redirect_uri'] = $testUrl;
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3036
            break;
Open commit View diff
3036 break;
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3037
          }
Open commit View diff
3037 }
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3038
        }
Open commit View diff
3038 }
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3039
      }
Open commit View diff
3039 }
same change 692355a

Allow additional domains in OAuth2 redirect URLs

Full commit hash
692355a08ad935b147ef8e877635d247a0e5aac3
Author
PseudoResonance <[email protected]>
Date
over 1 year ago
Selected line
3040
      $authUrl = $iam_provider->getAuthorizationUrl($options);
Open commit View diff
3040 $authUrl = $iam_provider->getAuthorizationUrl($options);
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3041
      $_SESSION['oauth2state'] = $iam_provider->getState();
Open commit View diff
3041 $_SESSION['oauth2state'] = $iam_provider->getState();
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3042
      return $authUrl;
Open commit View diff
3042 return $authUrl;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3043
    break;
Open commit View diff
3043 break;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3044
    case "get-keycloak-admin-token":
Open commit View diff
3044 case "get-keycloak-admin-token":
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3045
      // get access_token for service account of mailcow client
Open commit View diff
3045 // get access_token for service account of mailcow client
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3046
      if ($iam_settings['authsource'] !== 'keycloak') return false;
Open commit View diff
3046 if ($iam_settings['authsource'] !== 'keycloak') return false;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3047
      if (isset($iam_settings['access_token'])) {
Open commit View diff
3047 if (isset($iam_settings['access_token'])) {
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3048
        // check if access_token is valid
Open commit View diff
3048 // check if access_token is valid
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3049
        $url = "{$iam_settings['server_url']}/realms/{$iam_settings['realm']}/protocol/openid-connect/token/introspect";
Open commit View diff
3049 $url = "{$iam_settings['server_url']}/realms/{$iam_settings['realm']}/protocol/openid-connect/token/introspect";
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3050
        $req = http_build_query(array(
Open commit View diff
3050 $req = http_build_query(array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3051
          'token'    => $iam_settings['access_token'],
Open commit View diff
3051 'token' => $iam_settings['access_token'],
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3052
          'client_id'     => $iam_settings['client_id'],
Open commit View diff
3052 'client_id' => $iam_settings['client_id'],
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3053
          'client_secret' => $iam_settings['client_secret']
Open commit View diff
3053 'client_secret' => $iam_settings['client_secret']
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3054
        ));
Open commit View diff
3054 ));
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3055
        $curl = curl_init();
Open commit View diff
3055 $curl = curl_init();
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3056
        curl_setopt($curl, CURLOPT_URL, $url);
Open commit View diff
3056 curl_setopt($curl, CURLOPT_URL, $url);
FreddleSpl0it about 3 years ago 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3057
        curl_setopt($curl, CURLOPT_TIMEOUT, 7);
Open commit View diff
3057 curl_setopt($curl, CURLOPT_TIMEOUT, 7);
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3058
        curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
3058 curl_setopt($curl, CURLOPT_POST, 1);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3059
        curl_setopt($curl, CURLOPT_POSTFIELDS, $req);
Open commit View diff
3059 curl_setopt($curl, CURLOPT_POSTFIELDS, $req);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3060
        curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
Open commit View diff
3060 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3061
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
3061 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3062
        curl_setopt($curl, CURLOPT_TIMEOUT, 5);
Open commit View diff
3062 curl_setopt($curl, CURLOPT_TIMEOUT, 5);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3063
        $res = json_decode(curl_exec($curl), true);
Open commit View diff
3063 $res = json_decode(curl_exec($curl), true);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3064
        $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
Open commit View diff
3064 $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3065
        curl_close ($curl);
Open commit View diff
3065 curl_close ($curl);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3066
        if ($code == 200 && $res['active'] == true) {
Open commit View diff
3066 if ($code == 200 && $res['active'] == true) {
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3067
          // token is valid
Open commit View diff
3067 // token is valid
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3068
          return $iam_settings['access_token'];
Open commit View diff
3068 return $iam_settings['access_token'];
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3069
        }
Open commit View diff
3069 }
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3070
      }
Open commit View diff
3070 }
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3071
Open commit View diff
3071
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3072
      $url = "{$iam_settings['server_url']}/realms/{$iam_settings['realm']}/protocol/openid-connect/token";
Open commit View diff
3072 $url = "{$iam_settings['server_url']}/realms/{$iam_settings['realm']}/protocol/openid-connect/token";
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3073
      $req = http_build_query(array(
Open commit View diff
3073 $req = http_build_query(array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3074
        'grant_type'    => 'client_credentials',
Open commit View diff
3074 'grant_type' => 'client_credentials',
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3075
        'client_id'     => $iam_settings['client_id'],
Open commit View diff
3075 'client_id' => $iam_settings['client_id'],
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3076
        'client_secret' => $iam_settings['client_secret']
Open commit View diff
3076 'client_secret' => $iam_settings['client_secret']
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3077
      ));
Open commit View diff
3077 ));
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3078
      $curl = curl_init();
Open commit View diff
3078 $curl = curl_init();
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3079
      curl_setopt($curl, CURLOPT_URL, $url);
Open commit View diff
3079 curl_setopt($curl, CURLOPT_URL, $url);
FreddleSpl0it about 3 years ago 6df6638

[Web] add curl timeouts to oidc requests

Full commit hash
6df663825aaecdb05b2dcda3d27882f1397eee85
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3080
      curl_setopt($curl, CURLOPT_TIMEOUT, 7);
Open commit View diff
3080 curl_setopt($curl, CURLOPT_TIMEOUT, 7);
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3081
      curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
3081 curl_setopt($curl, CURLOPT_POST, 1);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3082
      curl_setopt($curl, CURLOPT_POSTFIELDS, $req);
Open commit View diff
3082 curl_setopt($curl, CURLOPT_POSTFIELDS, $req);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3083
      curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
Open commit View diff
3083 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3084
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
3084 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3085
      curl_setopt($curl, CURLOPT_TIMEOUT, 5);
Open commit View diff
3085 curl_setopt($curl, CURLOPT_TIMEOUT, 5);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3086
      $res = json_decode(curl_exec($curl), true);
Open commit View diff
3086 $res = json_decode(curl_exec($curl), true);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3087
      $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
Open commit View diff
3087 $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3088
      curl_close ($curl);
Open commit View diff
3088 curl_close ($curl);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3089
      if ($code != 200) {
Open commit View diff
3089 if ($code != 200) {
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3090
        return false;
Open commit View diff
3090 return false;
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3091
      }
Open commit View diff
3091 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3092
Open commit View diff
3092
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3093
      $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES (:key, :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
Open commit View diff
3093 $stmt = $pdo->prepare("INSERT INTO identity_provider (`key`, `value`) VALUES (:key, :value) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`);");
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3094
      $stmt->execute(array(
Open commit View diff
3094 $stmt->execute(array(
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3095
        ':key' => 'access_token',
Open commit View diff
3095 ':key' => 'access_token',
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3096
        ':value' => $res['access_token']
Open commit View diff
3096 ':value' => $res['access_token']
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3097
      ));
Open commit View diff
3097 ));
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3098
      return $res['access_token'];
Open commit View diff
3098 return $res['access_token'];
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3099
    break;
Open commit View diff
3099 break;
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
3100
  }
Open commit View diff
3100 }
same change f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
3101
}
Open commit View diff
3101 }
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3102
function reset_password($action, $data = null) {
Open commit View diff
3102 function reset_password($action, $data = null) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3103
  global $pdo;
Open commit View diff
3103 global $pdo;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3104
  global $redis;
Open commit View diff
3104 global $redis;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3105
  global $mailcow_hostname;
Open commit View diff
3105 global $mailcow_hostname;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3106
  global $PW_RESET_TOKEN_LIMIT;
Open commit View diff
3106 global $PW_RESET_TOKEN_LIMIT;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3107
  global $PW_RESET_TOKEN_LIFETIME;
Open commit View diff
3107 global $PW_RESET_TOKEN_LIFETIME;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3108
Open commit View diff
3108
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3109
	$_data_log = $data;
Open commit View diff
3109 $_data_log = $data;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3110
  if (isset($_data_log['new_password'])) $_data_log['new_password'] = '*';
Open commit View diff
3110 if (isset($_data_log['new_password'])) $_data_log['new_password'] = '*';
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3111
  if (isset($_data_log['new_password2'])) $_data_log['new_password2'] = '*';
Open commit View diff
3111 if (isset($_data_log['new_password2'])) $_data_log['new_password2'] = '*';
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3112
Open commit View diff
3112
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3113
  switch ($action) {
Open commit View diff
3113 switch ($action) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3114
    case 'check':
Open commit View diff
3114 case 'check':
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3115
      $token = $data;
Open commit View diff
3115 $token = $data;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3116
Open commit View diff
3116
FreddleSpl0it almost 2 years ago 962ac39

Merge remote-tracking branch 'origin/staging' into nightly

Full commit hash
962ac39e4aa6232ce046f57923e72aeeb25f32a8
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3117
      $stmt = $pdo->prepare("SELECT `t1`.`username` FROM `reset_password` AS `t1` JOIN `mailbox` AS `t2` ON `t1`.`username` = `t2`.`username` WHERE `t1`.`token` = :token AND `t1`.`created` > DATE_SUB(NOW(), INTERVAL :lifetime MINUTE) AND `t2`.`active` = 1 AND `t2`.`authsource` = 'mailcow';");
Open commit View diff
3117 $stmt = $pdo->prepare("SELECT `t1`.`username` FROM `reset_password` AS `t1` JOIN `mailbox` AS `t2` ON `t1`.`username` = `t2`.`username` WHERE `t1`.`token` = :token AND `t1`.`created` > DATE_SUB(NOW(), INTERVAL :lifetime MINUTE) AND `t2`.`active` = 1 AND `t2`.`authsource` = 'mailcow';");
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3118
      $stmt->execute(array(
Open commit View diff
3118 $stmt->execute(array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3119
        ':token' => preg_replace('/[^a-zA-Z0-9-]/', '', $token),
Open commit View diff
3119 ':token' => preg_replace('/[^a-zA-Z0-9-]/', '', $token),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3120
        ':lifetime' => $PW_RESET_TOKEN_LIFETIME
Open commit View diff
3120 ':lifetime' => $PW_RESET_TOKEN_LIFETIME
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3121
      ));
Open commit View diff
3121 ));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3122
      $return = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
3122 $return = $stmt->fetch(PDO::FETCH_ASSOC);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3123
      return empty($return['username']) ? false : $return['username'];
Open commit View diff
3123 return empty($return['username']) ? false : $return['username'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3124
    break;
Open commit View diff
3124 break;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3125
    case 'issue':
Open commit View diff
3125 case 'issue':
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3126
      $username = $data;
Open commit View diff
3126 $username = $data;
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3127
Open commit View diff
3127
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3128
      // perform cleanup
Open commit View diff
3128 // perform cleanup
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3129
      $stmt = $pdo->prepare("DELETE FROM `reset_password` WHERE created < DATE_SUB(NOW(), INTERVAL :lifetime MINUTE);");
Open commit View diff
3129 $stmt = $pdo->prepare("DELETE FROM `reset_password` WHERE created < DATE_SUB(NOW(), INTERVAL :lifetime MINUTE);");
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3130
      $stmt->execute(array(':lifetime' => $PW_RESET_TOKEN_LIFETIME));
Open commit View diff
3130 $stmt->execute(array(':lifetime' => $PW_RESET_TOKEN_LIFETIME));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3131
Open commit View diff
3131
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3132
      if (filter_var($username, FILTER_VALIDATE_EMAIL) === false) {
Open commit View diff
3132 if (filter_var($username, FILTER_VALIDATE_EMAIL) === false) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3133
        $_SESSION['return'][] = array(
Open commit View diff
3133 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3134
          'type' => 'danger',
Open commit View diff
3134 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3135
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3135 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3136
          'msg' => 'access_denied'
Open commit View diff
3136 'msg' => 'access_denied'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3137
        );
Open commit View diff
3137 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3138
        return false;
Open commit View diff
3138 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3139
      }
Open commit View diff
3139 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3140
Open commit View diff
3140
FreddleSpl0it almost 2 years ago c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3141
      $pw_reset_notification = reset_password('get_notification', 'raw');
Open commit View diff
3141 $pw_reset_notification = reset_password('get_notification', 'raw');
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3142
      if (!$pw_reset_notification) return false;
Open commit View diff
3142 if (!$pw_reset_notification) return false;
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3143
      if (empty($pw_reset_notification['from']) || empty($pw_reset_notification['subject'])) {
Open commit View diff
3143 if (empty($pw_reset_notification['from']) || empty($pw_reset_notification['subject'])) {
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3144
        $_SESSION['return'][] = array(
Open commit View diff
3144 $_SESSION['return'][] = array(
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3145
          'type' => 'danger',
Open commit View diff
3145 'type' => 'danger',
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3146
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3146 'log' => array(__FUNCTION__, $action, $_data_log),
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3147
          'msg' => 'password_reset_na'
Open commit View diff
3147 'msg' => 'password_reset_na'
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3148
        );
Open commit View diff
3148 );
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3149
        return false;
Open commit View diff
3149 return false;
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3150
      }
Open commit View diff
3150 }
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3151
Open commit View diff
3151
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3152
      $stmt = $pdo->prepare("SELECT * FROM `mailbox`
Open commit View diff
3152 $stmt = $pdo->prepare("SELECT * FROM `mailbox`
FreddleSpl0it almost 2 years ago 962ac39

Merge remote-tracking branch 'origin/staging' into nightly

Full commit hash
962ac39e4aa6232ce046f57923e72aeeb25f32a8
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3153
        WHERE `username` = :username AND authsource = 'mailcow'");
Open commit View diff
3153 WHERE `username` = :username AND authsource = 'mailcow'");
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3154
      $stmt->execute(array(':username' => $username));
Open commit View diff
3154 $stmt->execute(array(':username' => $username));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3155
      $mailbox_data = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
3155 $mailbox_data = $stmt->fetch(PDO::FETCH_ASSOC);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3156
Open commit View diff
3156
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3157
      if (empty($mailbox_data)) {
Open commit View diff
3157 if (empty($mailbox_data)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3158
        $_SESSION['return'][] = array(
Open commit View diff
3158 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3159
          'type' => 'danger',
Open commit View diff
3159 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3160
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3160 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3161
          'msg' => 'password_reset_invalid_user'
Open commit View diff
3161 'msg' => 'password_reset_invalid_user'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3162
        );
Open commit View diff
3162 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3163
        return false;
Open commit View diff
3163 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3164
      }
Open commit View diff
3164 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3165
Open commit View diff
3165
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3166
      $mailbox_attr = json_decode($mailbox_data['attributes'], true);
Open commit View diff
3166 $mailbox_attr = json_decode($mailbox_data['attributes'], true);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3167
      if (empty($mailbox_attr['recovery_email']) || filter_var($mailbox_attr['recovery_email'], FILTER_VALIDATE_EMAIL) === false) {
Open commit View diff
3167 if (empty($mailbox_attr['recovery_email']) || filter_var($mailbox_attr['recovery_email'], FILTER_VALIDATE_EMAIL) === false) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3168
        $_SESSION['return'][] = array(
Open commit View diff
3168 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3169
          'type' => 'danger',
Open commit View diff
3169 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3170
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3170 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3171
          'msg' => "password_reset_invalid_user"
Open commit View diff
3171 'msg' => "password_reset_invalid_user"
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3172
        );
Open commit View diff
3172 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3173
        return false;
Open commit View diff
3173 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3174
      }
Open commit View diff
3174 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3175
Open commit View diff
3175
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3176
      $stmt = $pdo->prepare("SELECT * FROM `reset_password`
Open commit View diff
3176 $stmt = $pdo->prepare("SELECT * FROM `reset_password`
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3177
        WHERE `username` = :username");
Open commit View diff
3177 WHERE `username` = :username");
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3178
      $stmt->execute(array(':username' => $username));
Open commit View diff
3178 $stmt->execute(array(':username' => $username));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3179
      $generated_token_count = count($stmt->fetchAll(PDO::FETCH_ASSOC));
Open commit View diff
3179 $generated_token_count = count($stmt->fetchAll(PDO::FETCH_ASSOC));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3180
      if ($generated_token_count >= $PW_RESET_TOKEN_LIMIT) {
Open commit View diff
3180 if ($generated_token_count >= $PW_RESET_TOKEN_LIMIT) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3181
        $_SESSION['return'][] = array(
Open commit View diff
3181 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3182
          'type' => 'danger',
Open commit View diff
3182 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3183
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3183 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3184
          'msg' => "reset_token_limit_exceeded"
Open commit View diff
3184 'msg' => "reset_token_limit_exceeded"
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3185
        );
Open commit View diff
3185 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3186
        return false;
Open commit View diff
3186 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3187
      }
Open commit View diff
3187 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3188
Open commit View diff
3188
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3189
      $token = implode('-', array(
Open commit View diff
3189 $token = implode('-', array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3190
        strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
3190 strtoupper(bin2hex(random_bytes(3))),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3191
        strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
3191 strtoupper(bin2hex(random_bytes(3))),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3192
        strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
3192 strtoupper(bin2hex(random_bytes(3))),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3193
        strtoupper(bin2hex(random_bytes(3))),
Open commit View diff
3193 strtoupper(bin2hex(random_bytes(3))),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3194
        strtoupper(bin2hex(random_bytes(3)))
Open commit View diff
3194 strtoupper(bin2hex(random_bytes(3)))
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3195
      ));
Open commit View diff
3195 ));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3196
Open commit View diff
3196
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3197
      $stmt = $pdo->prepare("INSERT INTO `reset_password` (`username`, `token`)
Open commit View diff
3197 $stmt = $pdo->prepare("INSERT INTO `reset_password` (`username`, `token`)
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3198
        VALUES (:username, :token)");
Open commit View diff
3198 VALUES (:username, :token)");
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3199
      $stmt->execute(array(
Open commit View diff
3199 $stmt->execute(array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3200
        ':username' => $username,
Open commit View diff
3200 ':username' => $username,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3201
        ':token' => $token
Open commit View diff
3201 ':token' => $token
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3202
      ));
Open commit View diff
3202 ));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3203
Open commit View diff
3203
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3204
      $reset_link = getBaseURL() . "/reset-password?token=" . $token;
Open commit View diff
3204 $reset_link = getBaseURL() . "/reset-password?token=" . $token;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3205
Open commit View diff
3205
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3206
      $request_date = new DateTime();
Open commit View diff
3206 $request_date = new DateTime();
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3207
      $locale_date = locale_get_default();
Open commit View diff
3207 $locale_date = locale_get_default();
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3208
      $date_formatter = new IntlDateFormatter(
Open commit View diff
3208 $date_formatter = new IntlDateFormatter(
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3209
        $locale_date,
Open commit View diff
3209 $locale_date,
same change dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3210
        IntlDateFormatter::FULL,
Open commit View diff
3210 IntlDateFormatter::FULL,
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3211
        IntlDateFormatter::FULL
Open commit View diff
3211 IntlDateFormatter::FULL
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3212
      );
Open commit View diff
3212 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3213
      $formatted_request_date = $date_formatter->format($request_date);
Open commit View diff
3213 $formatted_request_date = $date_formatter->format($request_date);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3214
Open commit View diff
3214
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3215
      // set template vars
Open commit View diff
3215 // set template vars
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3216
      // subject
Open commit View diff
3216 // subject
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3217
      $pw_reset_notification['subject'] = str_replace('{{hostname}}', $mailcow_hostname, $pw_reset_notification['subject']);
Open commit View diff
3217 $pw_reset_notification['subject'] = str_replace('{{hostname}}', $mailcow_hostname, $pw_reset_notification['subject']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3218
      $pw_reset_notification['subject'] = str_replace('{{link}}', $reset_link, $pw_reset_notification['subject']);
Open commit View diff
3218 $pw_reset_notification['subject'] = str_replace('{{link}}', $reset_link, $pw_reset_notification['subject']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3219
      $pw_reset_notification['subject'] = str_replace('{{username}}', $username, $pw_reset_notification['subject']);
Open commit View diff
3219 $pw_reset_notification['subject'] = str_replace('{{username}}', $username, $pw_reset_notification['subject']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3220
      $pw_reset_notification['subject'] = str_replace('{{username2}}', $mailbox_attr['recovery_email'], $pw_reset_notification['subject']);
Open commit View diff
3220 $pw_reset_notification['subject'] = str_replace('{{username2}}', $mailbox_attr['recovery_email'], $pw_reset_notification['subject']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3221
      $pw_reset_notification['subject'] = str_replace('{{date}}', $formatted_request_date, $pw_reset_notification['subject']);
Open commit View diff
3221 $pw_reset_notification['subject'] = str_replace('{{date}}', $formatted_request_date, $pw_reset_notification['subject']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3222
      $pw_reset_notification['subject'] = str_replace('{{token_lifetime}}', $PW_RESET_TOKEN_LIFETIME, $pw_reset_notification['subject']);
Open commit View diff
3222 $pw_reset_notification['subject'] = str_replace('{{token_lifetime}}', $PW_RESET_TOKEN_LIFETIME, $pw_reset_notification['subject']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3223
      // text
Open commit View diff
3223 // text
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3224
      $pw_reset_notification['text_tmpl'] = str_replace('{{hostname}}', $mailcow_hostname, $pw_reset_notification['text_tmpl']);
Open commit View diff
3224 $pw_reset_notification['text_tmpl'] = str_replace('{{hostname}}', $mailcow_hostname, $pw_reset_notification['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3225
      $pw_reset_notification['text_tmpl'] = str_replace('{{link}}', $reset_link, $pw_reset_notification['text_tmpl']);
Open commit View diff
3225 $pw_reset_notification['text_tmpl'] = str_replace('{{link}}', $reset_link, $pw_reset_notification['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3226
      $pw_reset_notification['text_tmpl'] = str_replace('{{username}}', $username, $pw_reset_notification['text_tmpl']);
Open commit View diff
3226 $pw_reset_notification['text_tmpl'] = str_replace('{{username}}', $username, $pw_reset_notification['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3227
      $pw_reset_notification['text_tmpl'] = str_replace('{{username2}}', $mailbox_attr['recovery_email'], $pw_reset_notification['text_tmpl']);
Open commit View diff
3227 $pw_reset_notification['text_tmpl'] = str_replace('{{username2}}', $mailbox_attr['recovery_email'], $pw_reset_notification['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3228
      $pw_reset_notification['text_tmpl'] = str_replace('{{date}}', $formatted_request_date, $pw_reset_notification['text_tmpl']);
Open commit View diff
3228 $pw_reset_notification['text_tmpl'] = str_replace('{{date}}', $formatted_request_date, $pw_reset_notification['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3229
      $pw_reset_notification['text_tmpl'] = str_replace('{{token_lifetime}}', $PW_RESET_TOKEN_LIFETIME, $pw_reset_notification['text_tmpl']);
Open commit View diff
3229 $pw_reset_notification['text_tmpl'] = str_replace('{{token_lifetime}}', $PW_RESET_TOKEN_LIFETIME, $pw_reset_notification['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3230
      // html
Open commit View diff
3230 // html
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3231
      $pw_reset_notification['html_tmpl'] = str_replace('{{hostname}}', $mailcow_hostname, $pw_reset_notification['html_tmpl']);
Open commit View diff
3231 $pw_reset_notification['html_tmpl'] = str_replace('{{hostname}}', $mailcow_hostname, $pw_reset_notification['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3232
      $pw_reset_notification['html_tmpl'] = str_replace('{{link}}', $reset_link, $pw_reset_notification['html_tmpl']);
Open commit View diff
3232 $pw_reset_notification['html_tmpl'] = str_replace('{{link}}', $reset_link, $pw_reset_notification['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3233
      $pw_reset_notification['html_tmpl'] = str_replace('{{username}}', $username, $pw_reset_notification['html_tmpl']);
Open commit View diff
3233 $pw_reset_notification['html_tmpl'] = str_replace('{{username}}', $username, $pw_reset_notification['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3234
      $pw_reset_notification['html_tmpl'] = str_replace('{{username2}}', $mailbox_attr['recovery_email'], $pw_reset_notification['html_tmpl']);
Open commit View diff
3234 $pw_reset_notification['html_tmpl'] = str_replace('{{username2}}', $mailbox_attr['recovery_email'], $pw_reset_notification['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3235
      $pw_reset_notification['html_tmpl'] = str_replace('{{date}}', $formatted_request_date, $pw_reset_notification['html_tmpl']);
Open commit View diff
3235 $pw_reset_notification['html_tmpl'] = str_replace('{{date}}', $formatted_request_date, $pw_reset_notification['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3236
      $pw_reset_notification['html_tmpl'] = str_replace('{{token_lifetime}}', $PW_RESET_TOKEN_LIFETIME, $pw_reset_notification['html_tmpl']);
Open commit View diff
3236 $pw_reset_notification['html_tmpl'] = str_replace('{{token_lifetime}}', $PW_RESET_TOKEN_LIFETIME, $pw_reset_notification['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3237
Open commit View diff
3237
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3238
Open commit View diff
3238
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3239
      $email_sent = reset_password('send_mail', array(
Open commit View diff
3239 $email_sent = reset_password('send_mail', array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3240
        "from" => $pw_reset_notification['from'],
Open commit View diff
3240 "from" => $pw_reset_notification['from'],
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3241
        "to" => $mailbox_attr['recovery_email'],
Open commit View diff
3241 "to" => $mailbox_attr['recovery_email'],
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3242
        "subject" => $pw_reset_notification['subject'],
Open commit View diff
3242 "subject" => $pw_reset_notification['subject'],
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3243
        "text" => $pw_reset_notification['text_tmpl'],
Open commit View diff
3243 "text" => $pw_reset_notification['text_tmpl'],
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3244
        "html" => $pw_reset_notification['html_tmpl']
Open commit View diff
3244 "html" => $pw_reset_notification['html_tmpl']
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3245
      ));
Open commit View diff
3245 ));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3246
Open commit View diff
3246
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3247
      if (!$email_sent){
Open commit View diff
3247 if (!$email_sent){
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3248
        $_SESSION['return'][] = array(
Open commit View diff
3248 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3249
          'type' => 'danger',
Open commit View diff
3249 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3250
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3250 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3251
          'msg' => "recovery_email_failed"
Open commit View diff
3251 'msg' => "recovery_email_failed"
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3252
        );
Open commit View diff
3252 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3253
        return false;
Open commit View diff
3253 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3254
      }
Open commit View diff
3254 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3255
Open commit View diff
3255
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3256
      list($localPart, $domainPart) = explode('@', $mailbox_attr['recovery_email']);
Open commit View diff
3256 list($localPart, $domainPart) = explode('@', $mailbox_attr['recovery_email']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3257
      if (strlen($localPart) > 1) {
Open commit View diff
3257 if (strlen($localPart) > 1) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3258
        $maskedLocalPart = $localPart[0] . str_repeat('*', strlen($localPart) - 1);
Open commit View diff
3258 $maskedLocalPart = $localPart[0] . str_repeat('*', strlen($localPart) - 1);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3259
      } else {
Open commit View diff
3259 } else {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3260
        $maskedLocalPart = "*";
Open commit View diff
3260 $maskedLocalPart = "*";
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3261
      }
Open commit View diff
3261 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3262
      $_SESSION['return'][] = array(
Open commit View diff
3262 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3263
        'type' => 'success',
Open commit View diff
3263 'type' => 'success',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3264
        'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3264 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3265
        'msg' => array("recovery_email_sent", $maskedLocalPart . '@' . $domainPart)
Open commit View diff
3265 'msg' => array("recovery_email_sent", $maskedLocalPart . '@' . $domainPart)
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3266
      );
Open commit View diff
3266 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3267
      return array(
Open commit View diff
3267 return array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3268
        "username" => $username,
Open commit View diff
3268 "username" => $username,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3269
        "issue" => "success"
Open commit View diff
3269 "issue" => "success"
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3270
      );
Open commit View diff
3270 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3271
    break;
Open commit View diff
3271 break;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3272
    case 'reset':
Open commit View diff
3272 case 'reset':
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3273
      $token = $data['token'];
Open commit View diff
3273 $token = $data['token'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3274
      $new_password = $data['new_password'];
Open commit View diff
3274 $new_password = $data['new_password'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3275
      $new_password2 = $data['new_password2'];
Open commit View diff
3275 $new_password2 = $data['new_password2'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3276
      $username = $data['username'];
Open commit View diff
3276 $username = $data['username'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3277
      $check_tfa = $data['check_tfa'];
Open commit View diff
3277 $check_tfa = $data['check_tfa'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3278
Open commit View diff
3278
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3279
      if (!$username || !$token) {
Open commit View diff
3279 if (!$username || !$token) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3280
        $_SESSION['return'][] = array(
Open commit View diff
3280 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3281
          'type' => 'danger',
Open commit View diff
3281 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3282
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3282 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3283
          'msg' => 'invalid_reset_token'
Open commit View diff
3283 'msg' => 'invalid_reset_token'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3284
        );
Open commit View diff
3284 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3285
        return false;
Open commit View diff
3285 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3286
      }
Open commit View diff
3286 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3287
Open commit View diff
3287
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3288
      # check new password
Open commit View diff
3288 # check new password
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3289
      if (!password_check($new_password, $new_password2)) {
Open commit View diff
3289 if (!password_check($new_password, $new_password2)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3290
        return false;
Open commit View diff
3290 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3291
      }
Open commit View diff
3291 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3292
Open commit View diff
3292
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3293
      if ($check_tfa){
Open commit View diff
3293 if ($check_tfa){
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3294
        // check for tfa authenticators
Open commit View diff
3294 // check for tfa authenticators
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3295
        $authenticators = get_tfa($username);
Open commit View diff
3295 $authenticators = get_tfa($username);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3296
        if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
Open commit View diff
3296 if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3297
          $_SESSION['pending_mailcow_cc_username'] = $username;
Open commit View diff
3297 $_SESSION['pending_mailcow_cc_username'] = $username;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3298
          $_SESSION['pending_pw_reset_token'] = $token;
Open commit View diff
3298 $_SESSION['pending_pw_reset_token'] = $token;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3299
          $_SESSION['pending_pw_new_password'] = $new_password;
Open commit View diff
3299 $_SESSION['pending_pw_new_password'] = $new_password;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3300
          $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
Open commit View diff
3300 $_SESSION['pending_tfa_methods'] = $authenticators['additional'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3301
          $_SESSION['return'][] =  array(
Open commit View diff
3301 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3302
            'type' => 'info',
Open commit View diff
3302 'type' => 'info',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3303
            'log' => array(__FUNCTION__, $user, '*'),
Open commit View diff
3303 'log' => array(__FUNCTION__, $user, '*'),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3304
            'msg' => 'awaiting_tfa_confirmation'
Open commit View diff
3304 'msg' => 'awaiting_tfa_confirmation'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3305
          );
Open commit View diff
3305 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3306
          return false;
Open commit View diff
3306 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3307
        }
Open commit View diff
3307 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3308
      }
Open commit View diff
3308 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3309
Open commit View diff
3309
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3310
      # set new password
Open commit View diff
3310 # set new password
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3311
      $password_hashed = hash_password($new_password);
Open commit View diff
3311 $password_hashed = hash_password($new_password);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3312
      $stmt = $pdo->prepare("UPDATE `mailbox` SET
Open commit View diff
3312 $stmt = $pdo->prepare("UPDATE `mailbox` SET
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3313
        `password` = :password_hashed,
Open commit View diff
3313 `password` = :password_hashed,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3314
        `attributes` = JSON_SET(`attributes`, '$.passwd_update', NOW())
Open commit View diff
3314 `attributes` = JSON_SET(`attributes`, '$.passwd_update', NOW())
FreddleSpl0it almost 2 years ago 962ac39

Merge remote-tracking branch 'origin/staging' into nightly

Full commit hash
962ac39e4aa6232ce046f57923e72aeeb25f32a8
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3315
        WHERE `username` = :username AND authsource = 'mailcow'");
Open commit View diff
3315 WHERE `username` = :username AND authsource = 'mailcow'");
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3316
      $stmt->execute(array(
Open commit View diff
3316 $stmt->execute(array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3317
        ':password_hashed' => $password_hashed,
Open commit View diff
3317 ':password_hashed' => $password_hashed,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3318
        ':username' => $username
Open commit View diff
3318 ':username' => $username
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3319
      ));
Open commit View diff
3319 ));
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3320
Open commit View diff
3320
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3321
      // perform cleanup
Open commit View diff
3321 // perform cleanup
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3322
      $stmt = $pdo->prepare("DELETE FROM `reset_password` WHERE `username` = :username;");
Open commit View diff
3322 $stmt = $pdo->prepare("DELETE FROM `reset_password` WHERE `username` = :username;");
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3323
      $stmt->execute(array(
Open commit View diff
3323 $stmt->execute(array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3324
        ':username' => $username
Open commit View diff
3324 ':username' => $username
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3325
      ));
Open commit View diff
3325 ));
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3326
Open commit View diff
3326
FreddleSpl0it over 1 year ago b9f52df

[Web] update _sogo_static_view on password reset

Full commit hash
b9f52df3f10e43c1fc9364ff0ef5a6008d959a40
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3327
      update_sogo_static_view($username);
Open commit View diff
3327 update_sogo_static_view($username);
same change b9f52df

[Web] update _sogo_static_view on password reset

Full commit hash
b9f52df3f10e43c1fc9364ff0ef5a6008d959a40
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3328
Open commit View diff
3328
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3329
      $_SESSION['return'][] = array(
Open commit View diff
3329 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3330
        'type' => 'success',
Open commit View diff
3330 'type' => 'success',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3331
        'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3331 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3332
        'msg' => 'password_changed_success'
Open commit View diff
3332 'msg' => 'password_changed_success'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3333
      );
Open commit View diff
3333 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3334
      return true;
Open commit View diff
3334 return true;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3335
    break;
Open commit View diff
3335 break;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3336
    case 'get_notification':
Open commit View diff
3336 case 'get_notification':
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3337
      $type = $data;
Open commit View diff
3337 $type = $data;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3338
Open commit View diff
3338
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3339
      try {
Open commit View diff
3339 try {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3340
        $settings['from'] = $redis->Get('PW_RESET_FROM');
Open commit View diff
3340 $settings['from'] = $redis->Get('PW_RESET_FROM');
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3341
        $settings['subject'] = $redis->Get('PW_RESET_SUBJ');
Open commit View diff
3341 $settings['subject'] = $redis->Get('PW_RESET_SUBJ');
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3342
        $settings['html_tmpl'] = $redis->Get('PW_RESET_HTML');
Open commit View diff
3342 $settings['html_tmpl'] = $redis->Get('PW_RESET_HTML');
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3343
        $settings['text_tmpl'] = $redis->Get('PW_RESET_TEXT');
Open commit View diff
3343 $settings['text_tmpl'] = $redis->Get('PW_RESET_TEXT');
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3344
        if (empty($settings['html_tmpl']) && empty($settings['text_tmpl'])) {
Open commit View diff
3344 if (empty($settings['html_tmpl']) && empty($settings['text_tmpl'])) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3345
          $settings['html_tmpl'] = file_get_contents("/tpls/pw_reset_html.tpl");
Open commit View diff
3345 $settings['html_tmpl'] = file_get_contents("/tpls/pw_reset_html.tpl");
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3346
          $settings['text_tmpl'] = file_get_contents("/tpls/pw_reset_text.tpl");
Open commit View diff
3346 $settings['text_tmpl'] = file_get_contents("/tpls/pw_reset_text.tpl");
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3347
        }
Open commit View diff
3347 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3348
Open commit View diff
3348
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3349
        if ($type != "raw") {
Open commit View diff
3349 if ($type != "raw") {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3350
          $settings['html_tmpl'] = htmlspecialchars($settings['html_tmpl']);
Open commit View diff
3350 $settings['html_tmpl'] = htmlspecialchars($settings['html_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3351
          $settings['text_tmpl'] = htmlspecialchars($settings['text_tmpl']);
Open commit View diff
3351 $settings['text_tmpl'] = htmlspecialchars($settings['text_tmpl']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3352
        }
Open commit View diff
3352 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3353
      }
Open commit View diff
3353 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3354
      catch (RedisException $e) {
Open commit View diff
3354 catch (RedisException $e) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3355
        $_SESSION['return'][] = array(
Open commit View diff
3355 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3356
          'type' => 'danger',
Open commit View diff
3356 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3357
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3357 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3358
          'msg' => array('redis_error', $e)
Open commit View diff
3358 'msg' => array('redis_error', $e)
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3359
        );
Open commit View diff
3359 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3360
        return false;
Open commit View diff
3360 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3361
      }
Open commit View diff
3361 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3362
Open commit View diff
3362
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3363
      return $settings;
Open commit View diff
3363 return $settings;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3364
    break;
Open commit View diff
3364 break;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3365
    case 'send_mail':
Open commit View diff
3365 case 'send_mail':
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3366
      $from = $data['from'];
Open commit View diff
3366 $from = $data['from'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3367
      $to = $data['to'];
Open commit View diff
3367 $to = $data['to'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3368
      $text = $data['text'];
Open commit View diff
3368 $text = $data['text'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3369
      $html = $data['html'];
Open commit View diff
3369 $html = $data['html'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3370
      $subject = $data['subject'];
Open commit View diff
3370 $subject = $data['subject'];
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3371
Open commit View diff
3371
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3372
      if (!filter_var($from, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
3372 if (!filter_var($from, FILTER_VALIDATE_EMAIL)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3373
        $_SESSION['return'][] =  array(
Open commit View diff
3373 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3374
          'type' => 'danger',
Open commit View diff
3374 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3375
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3375 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3376
          'msg' => 'from_invalid'
Open commit View diff
3376 'msg' => 'from_invalid'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3377
        );
Open commit View diff
3377 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3378
        return false;
Open commit View diff
3378 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3379
      }
Open commit View diff
3379 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3380
      if (!filter_var($to, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
3380 if (!filter_var($to, FILTER_VALIDATE_EMAIL)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3381
        $_SESSION['return'][] =  array(
Open commit View diff
3381 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3382
          'type' => 'danger',
Open commit View diff
3382 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3383
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3383 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3384
          'msg' => 'to_invalid'
Open commit View diff
3384 'msg' => 'to_invalid'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3385
        );
Open commit View diff
3385 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3386
        return false;
Open commit View diff
3386 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3387
      }
Open commit View diff
3387 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3388
      if (empty($subject)) {
Open commit View diff
3388 if (empty($subject)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3389
        $_SESSION['return'][] =  array(
Open commit View diff
3389 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3390
          'type' => 'danger',
Open commit View diff
3390 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3391
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3391 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3392
          'msg' => 'subject_empty'
Open commit View diff
3392 'msg' => 'subject_empty'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3393
        );
Open commit View diff
3393 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3394
        return false;
Open commit View diff
3394 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3395
      }
Open commit View diff
3395 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3396
      if (empty($text)) {
Open commit View diff
3396 if (empty($text)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3397
        $_SESSION['return'][] =  array(
Open commit View diff
3397 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3398
          'type' => 'danger',
Open commit View diff
3398 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3399
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3399 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3400
          'msg' => 'text_empty'
Open commit View diff
3400 'msg' => 'text_empty'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3401
        );
Open commit View diff
3401 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3402
        return false;
Open commit View diff
3402 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3403
      }
Open commit View diff
3403 }
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3404
Open commit View diff
3404
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3405
      ini_set('max_execution_time', 0);
Open commit View diff
3405 ini_set('max_execution_time', 0);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3406
      ini_set('max_input_time', 0);
Open commit View diff
3406 ini_set('max_input_time', 0);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3407
      $mail = new PHPMailer;
Open commit View diff
3407 $mail = new PHPMailer;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3408
      $mail->Timeout = 10;
Open commit View diff
3408 $mail->Timeout = 10;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3409
      $mail->SMTPOptions = array(
Open commit View diff
3409 $mail->SMTPOptions = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3410
        'ssl' => array(
Open commit View diff
3410 'ssl' => array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3411
          'verify_peer' => false,
Open commit View diff
3411 'verify_peer' => false,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3412
          'verify_peer_name' => false,
Open commit View diff
3412 'verify_peer_name' => false,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3413
          'allow_self_signed' => true
Open commit View diff
3413 'allow_self_signed' => true
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3414
        )
Open commit View diff
3414 )
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3415
      );
Open commit View diff
3415 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3416
      $mail->isSMTP();
Open commit View diff
3416 $mail->isSMTP();
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3417
      $mail->Host = 'postfix-mailcow';
Open commit View diff
3417 $mail->Host = 'postfix-mailcow';
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3418
      $mail->SMTPAuth = false;
Open commit View diff
3418 $mail->SMTPAuth = false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3419
      $mail->Port = 25;
Open commit View diff
3419 $mail->Port = 25;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3420
      $mail->setFrom($from);
Open commit View diff
3420 $mail->setFrom($from);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3421
      $mail->Subject = $subject;
Open commit View diff
3421 $mail->Subject = $subject;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3422
      $mail->CharSet ="UTF-8";
Open commit View diff
3422 $mail->CharSet ="UTF-8";
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3423
      if (!empty($html)) {
Open commit View diff
3423 if (!empty($html)) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3424
        $mail->Body = $html;
Open commit View diff
3424 $mail->Body = $html;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3425
        $mail->AltBody = $text;
Open commit View diff
3425 $mail->AltBody = $text;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3426
      }
Open commit View diff
3426 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3427
      else {
Open commit View diff
3427 else {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3428
        $mail->Body = $text;
Open commit View diff
3428 $mail->Body = $text;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3429
      }
Open commit View diff
3429 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3430
      $mail->XMailer = 'MooMail';
Open commit View diff
3430 $mail->XMailer = 'MooMail';
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3431
      $mail->AddAddress($to);
Open commit View diff
3431 $mail->AddAddress($to);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3432
      if (!$mail->send()) {
Open commit View diff
3432 if (!$mail->send()) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3433
        return false;
Open commit View diff
3433 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3434
      }
Open commit View diff
3434 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3435
      $mail->ClearAllRecipients();
Open commit View diff
3435 $mail->ClearAllRecipients();
FreddleSpl0it almost 2 years ago dbf87e9

[Web] Convert LDAP username_field and attribute_field to lowercase

Full commit hash
dbf87e99fc11970721763a1abe92fc9a20857254
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3436
Open commit View diff
3436
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3437
      return true;
Open commit View diff
3437 return true;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3438
    break;
Open commit View diff
3438 break;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3439
  }
Open commit View diff
3439 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3440
Open commit View diff
3440
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3441
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
3441 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3442
    $_SESSION['return'][] = array(
Open commit View diff
3442 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3443
      'type' => 'danger',
Open commit View diff
3443 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3444
      'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3444 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3445
      'msg' => 'access_denied'
Open commit View diff
3445 'msg' => 'access_denied'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3446
    );
Open commit View diff
3446 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3447
    return false;
Open commit View diff
3447 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3448
  }
Open commit View diff
3448 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3449
Open commit View diff
3449
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3450
  switch ($action) {
Open commit View diff
3450 switch ($action) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3451
    case 'edit_notification':
Open commit View diff
3451 case 'edit_notification':
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3452
      $subject = $data['subject'];
Open commit View diff
3452 $subject = $data['subject'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3453
      $from = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $data['from']);
Open commit View diff
3453 $from = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $data['from']);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3454
Open commit View diff
3454
FreddleSpl0it almost 2 years ago c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3455
      $from = (!filter_var($from, FILTER_VALIDATE_EMAIL)) ? "" : $from;
Open commit View diff
3455 $from = (!filter_var($from, FILTER_VALIDATE_EMAIL)) ? "" : $from;
same change c37bf0b

[Web] improve error handling for user password resets

Full commit hash
c37bf0bb32aa58266d75ca84ac8f8f36f93d0939
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3456
      $subject = (empty($subject)) ? "" : $subject;
Open commit View diff
3456 $subject = (empty($subject)) ? "" : $subject;
FreddleSpl0it almost 2 years ago 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3457
      $text = (empty($data['text_tmpl'])) ? "" : $data['text_tmpl'];
Open commit View diff
3457 $text = (empty($data['text_tmpl'])) ? "" : $data['text_tmpl'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3458
      $html = (empty($data['html_tmpl'])) ? "" : $data['html_tmpl'];
Open commit View diff
3458 $html = (empty($data['html_tmpl'])) ? "" : $data['html_tmpl'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3459
Open commit View diff
3459
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3460
      try {
Open commit View diff
3460 try {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3461
        $redis->Set('PW_RESET_FROM', $from);
Open commit View diff
3461 $redis->Set('PW_RESET_FROM', $from);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3462
        $redis->Set('PW_RESET_SUBJ', $subject);
Open commit View diff
3462 $redis->Set('PW_RESET_SUBJ', $subject);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3463
        $redis->Set('PW_RESET_HTML', $html);
Open commit View diff
3463 $redis->Set('PW_RESET_HTML', $html);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3464
        $redis->Set('PW_RESET_TEXT', $text);
Open commit View diff
3464 $redis->Set('PW_RESET_TEXT', $text);
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3465
      }
Open commit View diff
3465 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3466
      catch (RedisException $e) {
Open commit View diff
3466 catch (RedisException $e) {
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3467
        $_SESSION['return'][] = array(
Open commit View diff
3467 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3468
          'type' => 'danger',
Open commit View diff
3468 'type' => 'danger',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3469
          'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3469 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3470
          'msg' => array('redis_error', $e)
Open commit View diff
3470 'msg' => array('redis_error', $e)
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3471
        );
Open commit View diff
3471 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3472
        return false;
Open commit View diff
3472 return false;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3473
      }
Open commit View diff
3473 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3474
Open commit View diff
3474
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3475
      $_SESSION['return'][] = array(
Open commit View diff
3475 $_SESSION['return'][] = array(
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3476
        'type' => 'success',
Open commit View diff
3476 'type' => 'success',
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3477
        'log' => array(__FUNCTION__, $action, $_data_log),
Open commit View diff
3477 'log' => array(__FUNCTION__, $action, $_data_log),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3478
        'msg' => 'saved_settings'
Open commit View diff
3478 'msg' => 'saved_settings'
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3479
      );
Open commit View diff
3479 );
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3480
    break;
Open commit View diff
3480 break;
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3481
  }
Open commit View diff
3481 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
3482
}
Open commit View diff
3482 }
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3483
function clear_session(){
Open commit View diff
3483 function clear_session(){
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3484
  session_regenerate_id(true);
Open commit View diff
3484 session_regenerate_id(true);
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3485
  session_unset();
Open commit View diff
3485 session_unset();
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3486
  session_destroy();
Open commit View diff
3486 session_destroy();
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3487
  session_write_close();
Open commit View diff
3487 session_write_close();
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3488
}
Open commit View diff
3488 }
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3489
function set_user_loggedin_session($user) {
Open commit View diff
3489 function set_user_loggedin_session($user) {
FreddleSpl0it over 1 year ago 9d791d0

Merge branch 'staging' into nightly

Full commit hash
9d791d0c4f15d77de900a1496274afc20b4c9131
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3490
  session_regenerate_id(true);
Open commit View diff
3490 session_regenerate_id(true);
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3491
  $_SESSION['mailcow_cc_username'] = $user;
Open commit View diff
3491 $_SESSION['mailcow_cc_username'] = $user;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3492
  $_SESSION['mailcow_cc_role'] = 'user';
Open commit View diff
3492 $_SESSION['mailcow_cc_role'] = 'user';
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3493
  $sogo_sso_pass = file_get_contents("/etc/sogo-sso/sogo-sso.pass");
Open commit View diff
3493 $sogo_sso_pass = file_get_contents("/etc/sogo-sso/sogo-sso.pass");
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3494
  $_SESSION['sogo-sso-user-allowed'][] = $user;
Open commit View diff
3494 $_SESSION['sogo-sso-user-allowed'][] = $user;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3495
  $_SESSION['sogo-sso-pass'] = $sogo_sso_pass;
Open commit View diff
3495 $_SESSION['sogo-sso-pass'] = $sogo_sso_pass;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3496
  unset($_SESSION['pending_mailcow_cc_username']);
Open commit View diff
3496 unset($_SESSION['pending_mailcow_cc_username']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3497
  unset($_SESSION['pending_mailcow_cc_role']);
Open commit View diff
3497 unset($_SESSION['pending_mailcow_cc_role']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3498
  unset($_SESSION['pending_tfa_methods']);
Open commit View diff
3498 unset($_SESSION['pending_tfa_methods']);
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
3499
}
Open commit View diff
3499 }
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3500
function protect_route($allowed_roles = ['admin', 'domainadmin', 'user'], $redirects = []) {
Open commit View diff
3500 function protect_route($allowed_roles = ['admin', 'domainadmin', 'user'], $redirects = []) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3501
  // Check if user is authenticated
Open commit View diff
3501 // Check if user is authenticated
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3502
  if (!isset($_SESSION['mailcow_cc_role'])) {
Open commit View diff
3502 if (!isset($_SESSION['mailcow_cc_role'])) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3503
    if (isset($redirects['unauthenticated'])) {
Open commit View diff
3503 if (isset($redirects['unauthenticated'])) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3504
      header('Location: ' . $redirects['unauthenticated']);
Open commit View diff
3504 header('Location: ' . $redirects['unauthenticated']);
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3505
    } else {
Open commit View diff
3505 } else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3506
      header('Location: /');
Open commit View diff
3506 header('Location: /');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3507
    }
Open commit View diff
3507 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3508
    exit();
Open commit View diff
3508 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3509
  }
Open commit View diff
3509 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3510
Open commit View diff
3510
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3511
  // Check for pending actions (2FA setup, password update)
Open commit View diff
3511 // Check for pending actions (2FA setup, password update)
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3512
  if (!empty($_SESSION['pending_tfa_setup']) || !empty($_SESSION['pending_pw_update'])) {
Open commit View diff
3512 if (!empty($_SESSION['pending_tfa_setup']) || !empty($_SESSION['pending_pw_update'])) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3513
    $pending_redirect = '/';
Open commit View diff
3513 $pending_redirect = '/';
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3514
    if ($_SESSION['mailcow_cc_role'] === 'admin') {
Open commit View diff
3514 if ($_SESSION['mailcow_cc_role'] === 'admin') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3515
      $pending_redirect = '/admin';
Open commit View diff
3515 $pending_redirect = '/admin';
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3516
    } elseif ($_SESSION['mailcow_cc_role'] === 'domainadmin') {
Open commit View diff
3516 } elseif ($_SESSION['mailcow_cc_role'] === 'domainadmin') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3517
      $pending_redirect = '/domainadmin';
Open commit View diff
3517 $pending_redirect = '/domainadmin';
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3518
    }
Open commit View diff
3518 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3519
    header('Location: ' . $pending_redirect);
Open commit View diff
3519 header('Location: ' . $pending_redirect);
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3520
    exit();
Open commit View diff
3520 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3521
  }
Open commit View diff
3521 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3522
Open commit View diff
3522
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3523
  // Check if user's role is in the allowed roles for the route
Open commit View diff
3523 // Check if user's role is in the allowed roles for the route
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3524
  if (!in_array($_SESSION['mailcow_cc_role'], $allowed_roles)) {
Open commit View diff
3524 if (!in_array($_SESSION['mailcow_cc_role'], $allowed_roles)) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3525
    if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') {
Open commit View diff
3525 if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3526
      header('Location: /admin/dashboard');
Open commit View diff
3526 header('Location: /admin/dashboard');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3527
      exit();
Open commit View diff
3527 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3528
    }
Open commit View diff
3528 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3529
    elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'domainadmin') {
Open commit View diff
3529 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'domainadmin') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3530
      header('Location: /domainadmin/mailbox');
Open commit View diff
3530 header('Location: /domainadmin/mailbox');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3531
      exit();
Open commit View diff
3531 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3532
    }
Open commit View diff
3532 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3533
    elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user') {
Open commit View diff
3533 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3534
      header('Location: /user');
Open commit View diff
3534 header('Location: /user');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3535
      exit();
Open commit View diff
3535 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3536
    }
Open commit View diff
3536 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3537
    else {
Open commit View diff
3537 else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3538
      header('Location: /');
Open commit View diff
3538 header('Location: /');
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3539
      exit();
Open commit View diff
3539 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3540
    }
Open commit View diff
3540 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3541
  }
Open commit View diff
3541 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
3542
}
Open commit View diff
3542 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3543
function get_logs($application, $lines = false) {
Open commit View diff
3543 function get_logs($application, $lines = false) {
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3544
  if ($lines === false) {
Open commit View diff
3544 if ($lines === false) {
Miro Rauhala about 6 years ago 6bff958

[Web] Clean PHP code by removing unused variables (#3646)

Full commit hash
6bff958ab4381f27aba5464bce80290015d4458a
Author
Miro Rauhala <[email protected]>
Date
about 6 years ago
Selected line
3545
    $lines = $GLOBALS['LOG_LINES'] - 1;
Open commit View diff
3545 $lines = $GLOBALS['LOG_LINES'] - 1;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3546
  }
Open commit View diff
3546 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3547
  elseif(is_numeric($lines) && $lines >= 1) {
Open commit View diff
3547 elseif(is_numeric($lines) && $lines >= 1) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3548
    $lines = abs(intval($lines) - 1);
Open commit View diff
3548 $lines = abs(intval($lines) - 1);
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3549
  }
Open commit View diff
3549 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3550
  else {
Open commit View diff
3550 else {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3551
    list ($from, $to) = explode('-', $lines);
Open commit View diff
3551 list ($from, $to) = explode('-', $lines);
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3552
    $from = intval($from);
Open commit View diff
3552 $from = intval($from);
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3553
    $to = intval($to);
Open commit View diff
3553 $to = intval($to);
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3554
    if ($from < 1 || $to < $from) { return false; }
Open commit View diff
3554 if ($from < 1 || $to < $from) { return false; }
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3555
  }
Open commit View diff
3555 }
andryyy almost 5 years ago cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
3556
  global $redis;
Open commit View diff
3556 global $redis;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
3557
  global $pdo;
Open commit View diff
3557 global $pdo;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
3558
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
3558 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
3559
    return false;
Open commit View diff
3559 return false;
same change cf8fdae

[Web] Some minor fixes and improvements for PHP 8

Full commit hash
cf8fdae2773e96b7b1753c38f011d77cd2f25448
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
3560
  }
Open commit View diff
3560 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3561
  // SQL
Open commit View diff
3561 // SQL
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3562
  if ($application == "mailcow-ui") {
Open commit View diff
3562 if ($application == "mailcow-ui") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3563
    if (isset($from) && isset($to)) {
Open commit View diff
3563 if (isset($from) && isset($to)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3564
      $stmt = $pdo->prepare("SELECT * FROM `logs` ORDER BY `id` DESC LIMIT :from, :to");
Open commit View diff
3564 $stmt = $pdo->prepare("SELECT * FROM `logs` ORDER BY `id` DESC LIMIT :from, :to");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3565
      $stmt->execute(array(
Open commit View diff
3565 $stmt->execute(array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3566
        ':from' => $from - 1,
Open commit View diff
3566 ':from' => $from - 1,
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3567
        ':to' => $to
Open commit View diff
3567 ':to' => $to
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3568
      ));
Open commit View diff
3568 ));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3569
      $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
3569 $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3570
    }
Open commit View diff
3570 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3571
    else {
Open commit View diff
3571 else {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3572
      $stmt = $pdo->prepare("SELECT * FROM `logs` ORDER BY `id` DESC LIMIT :lines");
Open commit View diff
3572 $stmt = $pdo->prepare("SELECT * FROM `logs` ORDER BY `id` DESC LIMIT :lines");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3573
      $stmt->execute(array(
Open commit View diff
3573 $stmt->execute(array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3574
        ':lines' => $lines + 1,
Open commit View diff
3574 ':lines' => $lines + 1,
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3575
      ));
Open commit View diff
3575 ));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3576
      $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
3576 $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3577
    }
Open commit View diff
3577 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3578
    if (is_array($data)) {
Open commit View diff
3578 if (is_array($data)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3579
      return $data;
Open commit View diff
3579 return $data;
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3580
    }
Open commit View diff
3580 }
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3581
  }
Open commit View diff
3581 }
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3582
  if ($application == "sasl") {
Open commit View diff
3582 if ($application == "sasl") {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3583
    if (isset($from) && isset($to)) {
Open commit View diff
3583 if (isset($from) && isset($to)) {
andryyy about 5 years ago 78084c5

[Web] Log only latest datetime of a unique datetime, service and ip combination

Full commit hash
78084c5e7b7b0282a895603604c929e41f313888
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3584
      $stmt = $pdo->prepare("SELECT * FROM `sasl_log` ORDER BY `datetime` DESC LIMIT :from, :to");
Open commit View diff
3584 $stmt = $pdo->prepare("SELECT * FROM `sasl_log` ORDER BY `datetime` DESC LIMIT :from, :to");
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3585
      $stmt->execute(array(
Open commit View diff
3585 $stmt->execute(array(
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3586
        ':from' => $from - 1,
Open commit View diff
3586 ':from' => $from - 1,
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3587
        ':to' => $to
Open commit View diff
3587 ':to' => $to
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3588
      ));
Open commit View diff
3588 ));
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3589
      $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
3589 $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3590
    }
Open commit View diff
3590 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3591
    else {
Open commit View diff
3591 else {
andryyy about 5 years ago 78084c5

[Web] Log only latest datetime of a unique datetime, service and ip combination

Full commit hash
78084c5e7b7b0282a895603604c929e41f313888
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3592
      $stmt = $pdo->prepare("SELECT * FROM `sasl_log` ORDER BY `datetime` DESC LIMIT :lines");
Open commit View diff
3592 $stmt = $pdo->prepare("SELECT * FROM `sasl_log` ORDER BY `datetime` DESC LIMIT :lines");
andryyy about 5 years ago 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3593
      $stmt->execute(array(
Open commit View diff
3593 $stmt->execute(array(
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3594
        ':lines' => $lines + 1,
Open commit View diff
3594 ':lines' => $lines + 1,
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3595
      ));
Open commit View diff
3595 ));
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3596
      $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
3596 $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3597
    }
Open commit View diff
3597 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3598
    if (is_array($data)) {
Open commit View diff
3598 if (is_array($data)) {
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3599
      return $data;
Open commit View diff
3599 return $data;
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3600
    }
Open commit View diff
3600 }
same change 2d55b54

[Web] Show users the last known connections for SASL authentication

Full commit hash
2d55b54904c5111180910e95620445a931f26710
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
3601
  }
Open commit View diff
3601 }
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3602
  // Redis
Open commit View diff
3602 // Redis
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3603
  if ($application == "dovecot-mailcow") {
Open commit View diff
3603 if ($application == "dovecot-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3604
    if (isset($from) && isset($to)) {
Open commit View diff
3604 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3605
      $data = $redis->lRange('DOVECOT_MAILLOG', $from - 1, $to - 1);
Open commit View diff
3605 $data = $redis->lRange('DOVECOT_MAILLOG', $from - 1, $to - 1);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3606
    }
Open commit View diff
3606 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3607
    else {
Open commit View diff
3607 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3608
      $data = $redis->lRange('DOVECOT_MAILLOG', 0, $lines);
Open commit View diff
3608 $data = $redis->lRange('DOVECOT_MAILLOG', 0, $lines);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3609
    }
Open commit View diff
3609 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3610
    if ($data) {
Open commit View diff
3610 if ($data) {
FreddleSpl0it about 3 years ago b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3611
      foreach ($data as $json_line) {
Open commit View diff
3611 foreach ($data as $json_line) {
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3612
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3612 $data_array[] = json_decode($json_line, true);
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3613
      }
Open commit View diff
3613 }
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3614
      return $data_array;
Open commit View diff
3614 return $data_array;
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3615
    }
Open commit View diff
3615 }
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3616
  }
Open commit View diff
3616 }
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3617
  if ($application == "cron-mailcow") {
Open commit View diff
3617 if ($application == "cron-mailcow") {
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3618
    if (isset($from) && isset($to)) {
Open commit View diff
3618 if (isset($from) && isset($to)) {
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3619
      $data = $redis->lRange('CRON_LOG', $from - 1, $to - 1);
Open commit View diff
3619 $data = $redis->lRange('CRON_LOG', $from - 1, $to - 1);
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3620
    }
Open commit View diff
3620 }
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3621
    else {
Open commit View diff
3621 else {
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3622
      $data = $redis->lRange('CRON_LOG', 0, $lines);
Open commit View diff
3622 $data = $redis->lRange('CRON_LOG', 0, $lines);
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3623
    }
Open commit View diff
3623 }
same change b176585

[Web] add crontasks logs

Full commit hash
b176585a9c621f69f9244dc31f041456a7c07e05
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3624
    if ($data) {
Open commit View diff
3624 if ($data) {
andryyy about 9 years ago 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3625
      foreach ($data as $json_line) {
Open commit View diff
3625 foreach ($data as $json_line) {
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3626
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3626 $data_array[] = json_decode($json_line, true);
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3627
      }
Open commit View diff
3627 }
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3628
      return $data_array;
Open commit View diff
3628 return $data_array;
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3629
    }
Open commit View diff
3629 }
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3630
  }
Open commit View diff
3630 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3631
  if ($application == "postfix-mailcow") {
Open commit View diff
3631 if ($application == "postfix-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3632
    if (isset($from) && isset($to)) {
Open commit View diff
3632 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3633
      $data = $redis->lRange('POSTFIX_MAILLOG', $from - 1, $to - 1);
Open commit View diff
3633 $data = $redis->lRange('POSTFIX_MAILLOG', $from - 1, $to - 1);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3634
    }
Open commit View diff
3634 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3635
    else {
Open commit View diff
3635 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3636
      $data = $redis->lRange('POSTFIX_MAILLOG', 0, $lines);
Open commit View diff
3636 $data = $redis->lRange('POSTFIX_MAILLOG', 0, $lines);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3637
    }
Open commit View diff
3637 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3638
    if ($data) {
Open commit View diff
3638 if ($data) {
andryyy about 9 years ago 3b80a1a

Change admin layout, add Postfix logs

Full commit hash
3b80a1af371d9b614ffc9a3bd1926a5447d44c5d
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3639
      foreach ($data as $json_line) {
Open commit View diff
3639 foreach ($data as $json_line) {
same change 3b80a1a

Change admin layout, add Postfix logs

Full commit hash
3b80a1af371d9b614ffc9a3bd1926a5447d44c5d
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3640
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3640 $data_array[] = json_decode($json_line, true);
same change 3b80a1a

Change admin layout, add Postfix logs

Full commit hash
3b80a1af371d9b614ffc9a3bd1926a5447d44c5d
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3641
      }
Open commit View diff
3641 }
same change 3b80a1a

Change admin layout, add Postfix logs

Full commit hash
3b80a1af371d9b614ffc9a3bd1926a5447d44c5d
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3642
      return $data_array;
Open commit View diff
3642 return $data_array;
andryyy about 9 years ago 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3643
    }
Open commit View diff
3643 }
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3644
  }
Open commit View diff
3644 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3645
  if ($application == "sogo-mailcow") {
Open commit View diff
3645 if ($application == "sogo-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3646
    if (isset($from) && isset($to)) {
Open commit View diff
3646 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3647
      $data = $redis->lRange('SOGO_LOG', $from - 1, $to - 1);
Open commit View diff
3647 $data = $redis->lRange('SOGO_LOG', $from - 1, $to - 1);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3648
    }
Open commit View diff
3648 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3649
    else {
Open commit View diff
3649 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3650
      $data = $redis->lRange('SOGO_LOG', 0, $lines);
Open commit View diff
3650 $data = $redis->lRange('SOGO_LOG', 0, $lines);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3651
    }
Open commit View diff
3651 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3652
    if ($data) {
Open commit View diff
3652 if ($data) {
andryyy about 9 years ago c75ce51

Fixes: First line was missing in logs. Adds support for Fail2ban container

Full commit hash
c75ce5124cf32145bf4ea4e68a4dff7b98ee4a92
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3653
      foreach ($data as $json_line) {
Open commit View diff
3653 foreach ($data as $json_line) {
same change c75ce51

Fixes: First line was missing in logs. Adds support for Fail2ban container

Full commit hash
c75ce5124cf32145bf4ea4e68a4dff7b98ee4a92
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3654
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3654 $data_array[] = json_decode($json_line, true);
same change c75ce51

Fixes: First line was missing in logs. Adds support for Fail2ban container

Full commit hash
c75ce5124cf32145bf4ea4e68a4dff7b98ee4a92
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3655
      }
Open commit View diff
3655 }
same change c75ce51

Fixes: First line was missing in logs. Adds support for Fail2ban container

Full commit hash
c75ce5124cf32145bf4ea4e68a4dff7b98ee4a92
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3656
      return $data_array;
Open commit View diff
3656 return $data_array;
same change c75ce51

Fixes: First line was missing in logs. Adds support for Fail2ban container

Full commit hash
c75ce5124cf32145bf4ea4e68a4dff7b98ee4a92
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3657
    }
Open commit View diff
3657 }
same change c75ce51

Fixes: First line was missing in logs. Adds support for Fail2ban container

Full commit hash
c75ce5124cf32145bf4ea4e68a4dff7b98ee4a92
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3658
  }
Open commit View diff
3658 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3659
  if ($application == "watchdog-mailcow") {
Open commit View diff
3659 if ($application == "watchdog-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3660
    if (isset($from) && isset($to)) {
Open commit View diff
3660 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3661
      $data = $redis->lRange('WATCHDOG_LOG', $from - 1, $to - 1);
Open commit View diff
3661 $data = $redis->lRange('WATCHDOG_LOG', $from - 1, $to - 1);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3662
    }
Open commit View diff
3662 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3663
    else {
Open commit View diff
3663 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3664
      $data = $redis->lRange('WATCHDOG_LOG', 0, $lines);
Open commit View diff
3664 $data = $redis->lRange('WATCHDOG_LOG', 0, $lines);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3665
    }
Open commit View diff
3665 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3666
    if ($data) {
Open commit View diff
3666 if ($data) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3667
      foreach ($data as $json_line) {
Open commit View diff
3667 foreach ($data as $json_line) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3668
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3668 $data_array[] = json_decode($json_line, true);
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3669
      }
Open commit View diff
3669 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3670
      return $data_array;
Open commit View diff
3670 return $data_array;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3671
    }
Open commit View diff
3671 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3672
  }
Open commit View diff
3672 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3673
  if ($application == "acme-mailcow") {
Open commit View diff
3673 if ($application == "acme-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3674
    if (isset($from) && isset($to)) {
Open commit View diff
3674 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3675
      $data = $redis->lRange('ACME_LOG', $from - 1, $to - 1);
Open commit View diff
3675 $data = $redis->lRange('ACME_LOG', $from - 1, $to - 1);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3676
    }
Open commit View diff
3676 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3677
    else {
Open commit View diff
3677 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3678
      $data = $redis->lRange('ACME_LOG', 0, $lines);
Open commit View diff
3678 $data = $redis->lRange('ACME_LOG', 0, $lines);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3679
    }
Open commit View diff
3679 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3680
    if ($data) {
Open commit View diff
3680 if ($data) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3681
      foreach ($data as $json_line) {
Open commit View diff
3681 foreach ($data as $json_line) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3682
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3682 $data_array[] = json_decode($json_line, true);
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3683
      }
Open commit View diff
3683 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3684
      return $data_array;
Open commit View diff
3684 return $data_array;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3685
    }
Open commit View diff
3685 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3686
  }
Open commit View diff
3686 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3687
  if ($application == "ratelimited") {
Open commit View diff
3687 if ($application == "ratelimited") {
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3688
    if (isset($from) && isset($to)) {
Open commit View diff
3688 if (isset($from) && isset($to)) {
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3689
      $data = $redis->lRange('RL_LOG', $from - 1, $to - 1);
Open commit View diff
3689 $data = $redis->lRange('RL_LOG', $from - 1, $to - 1);
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3690
    }
Open commit View diff
3690 }
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3691
    else {
Open commit View diff
3691 else {
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3692
      $data = $redis->lRange('RL_LOG', 0, $lines);
Open commit View diff
3692 $data = $redis->lRange('RL_LOG', 0, $lines);
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3693
    }
Open commit View diff
3693 }
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3694
    if ($data) {
Open commit View diff
3694 if ($data) {
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3695
      foreach ($data as $json_line) {
Open commit View diff
3695 foreach ($data as $json_line) {
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3696
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3696 $data_array[] = json_decode($json_line, true);
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3697
      }
Open commit View diff
3697 }
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3698
      return $data_array;
Open commit View diff
3698 return $data_array;
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3699
    }
Open commit View diff
3699 }
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3700
  }
Open commit View diff
3700 }
same change 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3701
  if ($application == "api-mailcow") {
Open commit View diff
3701 if ($application == "api-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3702
    if (isset($from) && isset($to)) {
Open commit View diff
3702 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3703
      $data = $redis->lRange('API_LOG', $from - 1, $to - 1);
Open commit View diff
3703 $data = $redis->lRange('API_LOG', $from - 1, $to - 1);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3704
    }
Open commit View diff
3704 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3705
    else {
Open commit View diff
3705 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3706
      $data = $redis->lRange('API_LOG', 0, $lines);
Open commit View diff
3706 $data = $redis->lRange('API_LOG', 0, $lines);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3707
    }
Open commit View diff
3707 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3708
    if ($data) {
Open commit View diff
3708 if ($data) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3709
      foreach ($data as $json_line) {
Open commit View diff
3709 foreach ($data as $json_line) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3710
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3710 $data_array[] = json_decode($json_line, true);
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3711
      }
Open commit View diff
3711 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3712
      return $data_array;
Open commit View diff
3712 return $data_array;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3713
    }
Open commit View diff
3713 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
3714
  }
Open commit View diff
3714 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3715
  if ($application == "netfilter-mailcow") {
Open commit View diff
3715 if ($application == "netfilter-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3716
    if (isset($from) && isset($to)) {
Open commit View diff
3716 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3717
      $data = $redis->lRange('NETFILTER_LOG', $from - 1, $to - 1);
Open commit View diff
3717 $data = $redis->lRange('NETFILTER_LOG', $from - 1, $to - 1);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3718
    }
Open commit View diff
3718 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3719
    else {
Open commit View diff
3719 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3720
      $data = $redis->lRange('NETFILTER_LOG', 0, $lines);
Open commit View diff
3720 $data = $redis->lRange('NETFILTER_LOG', 0, $lines);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3721
    }
Open commit View diff
3721 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3722
    if ($data) {
Open commit View diff
3722 if ($data) {
andryyy about 9 years ago 2291b4e

Added SOGo logs

Full commit hash
2291b4e1215a0c541eb975c7f8b43df719753bbe
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3723
      foreach ($data as $json_line) {
Open commit View diff
3723 foreach ($data as $json_line) {
same change 2291b4e

Added SOGo logs

Full commit hash
2291b4e1215a0c541eb975c7f8b43df719753bbe
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3724
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3724 $data_array[] = json_decode($json_line, true);
same change 2291b4e

Added SOGo logs

Full commit hash
2291b4e1215a0c541eb975c7f8b43df719753bbe
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3725
      }
Open commit View diff
3725 }
same change 2291b4e

Added SOGo logs

Full commit hash
2291b4e1215a0c541eb975c7f8b43df719753bbe
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3726
      return $data_array;
Open commit View diff
3726 return $data_array;
same change 2291b4e

Added SOGo logs

Full commit hash
2291b4e1215a0c541eb975c7f8b43df719753bbe
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3727
    }
Open commit View diff
3727 }
same change 2291b4e

Added SOGo logs

Full commit hash
2291b4e1215a0c541eb975c7f8b43df719753bbe
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3728
  }
Open commit View diff
3728 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3729
  if ($application == "autodiscover-mailcow") {
Open commit View diff
3729 if ($application == "autodiscover-mailcow") {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3730
    if (isset($from) && isset($to)) {
Open commit View diff
3730 if (isset($from) && isset($to)) {
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3731
      $data = $redis->lRange('AUTODISCOVER_LOG', $from - 1, $to - 1);
Open commit View diff
3731 $data = $redis->lRange('AUTODISCOVER_LOG', $from - 1, $to - 1);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3732
    }
Open commit View diff
3732 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3733
    else {
Open commit View diff
3733 else {
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3734
      $data = $redis->lRange('AUTODISCOVER_LOG', 0, $lines);
Open commit View diff
3734 $data = $redis->lRange('AUTODISCOVER_LOG', 0, $lines);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3735
    }
Open commit View diff
3735 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3736
    if ($data) {
Open commit View diff
3736 if ($data) {
andryyy almost 9 years ago 9c37cd7

[Web] Autodiscover logs

Full commit hash
9c37cd76e5d11eb7150d4afbdf39db1bc461a468
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3737
      foreach ($data as $json_line) {
Open commit View diff
3737 foreach ($data as $json_line) {
same change 9c37cd7

[Web] Autodiscover logs

Full commit hash
9c37cd76e5d11eb7150d4afbdf39db1bc461a468
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3738
        $data_array[] = json_decode($json_line, true);
Open commit View diff
3738 $data_array[] = json_decode($json_line, true);
same change 9c37cd7

[Web] Autodiscover logs

Full commit hash
9c37cd76e5d11eb7150d4afbdf39db1bc461a468
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3739
      }
Open commit View diff
3739 }
same change 9c37cd7

[Web] Autodiscover logs

Full commit hash
9c37cd76e5d11eb7150d4afbdf39db1bc461a468
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3740
      return $data_array;
Open commit View diff
3740 return $data_array;
same change 9c37cd7

[Web] Autodiscover logs

Full commit hash
9c37cd76e5d11eb7150d4afbdf39db1bc461a468
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3741
    }
Open commit View diff
3741 }
same change 9c37cd7

[Web] Autodiscover logs

Full commit hash
9c37cd76e5d11eb7150d4afbdf39db1bc461a468
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3742
  }
Open commit View diff
3742 }
andryyy over 7 years ago 5b5976b

[Web] Show ratelimited messages, allow to delete Redis hash to reset status of a bucket

Full commit hash
5b5976ba230b6c31ed8811062446deb660d99eef
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3743
  if ($application == "rspamd-history") {
Open commit View diff
3743 if ($application == "rspamd-history") {
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3744
    $curl = curl_init();
Open commit View diff
3744 $curl = curl_init();
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3745
    curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
3745 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3746
    if (!is_numeric($lines)) {
Open commit View diff
3746 if (!is_numeric($lines)) {
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3747
      list ($from, $to) = explode('-', $lines);
Open commit View diff
3747 list ($from, $to) = explode('-', $lines);
André Peters over 8 years ago 77c7c1f

[Web] Fix css; Use socket for Rspamd history; Fix function file name

Full commit hash
77c7c1fe07c94fad2b4edec008532d10553ac435
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
3748
      curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?from=" . intval($from) . "&to=" . intval($to));
Open commit View diff
3748 curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?from=" . intval($from) . "&to=" . intval($to));
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3749
    }
Open commit View diff
3749 }
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3750
    else {
Open commit View diff
3750 else {
André Peters over 8 years ago 77c7c1f

[Web] Fix css; Use socket for Rspamd history; Fix function file name

Full commit hash
77c7c1fe07c94fad2b4edec008532d10553ac435
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
3751
      curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?to=" . intval($lines));
Open commit View diff
3751 curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?to=" . intval($lines));
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3752
    }
Open commit View diff
3752 }
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3753
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
3753 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3754
    $history = curl_exec($curl);
Open commit View diff
3754 $history = curl_exec($curl);
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
André <[email protected]>
Date
over 8 years ago
Selected line
3755
    if (!curl_errno($curl)) {
Open commit View diff
3755 if (!curl_errno($curl)) {
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3756
      $data_array = json_decode($history, true);
Open commit View diff
3756 $data_array = json_decode($history, true);
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3757
      curl_close($curl);
Open commit View diff
3757 curl_close($curl);
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3758
      return $data_array['rows'];
Open commit View diff
3758 return $data_array['rows'];
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3759
    }
Open commit View diff
3759 }
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3760
    curl_close($curl);
Open commit View diff
3760 curl_close($curl);
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3761
    return false;
Open commit View diff
3761 return false;
same change fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3762
  }
Open commit View diff
3762 }
andryyy almost 6 years ago f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3763
  if ($application == "rspamd-stats") {
Open commit View diff
3763 if ($application == "rspamd-stats") {
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3764
    $curl = curl_init();
Open commit View diff
3764 $curl = curl_init();
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3765
    curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
3765 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3766
    curl_setopt($curl, CURLOPT_URL,"http://rspamd/stat");
Open commit View diff
3766 curl_setopt($curl, CURLOPT_URL,"http://rspamd/stat");
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3767
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
Open commit View diff
3767 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3768
    $stats = curl_exec($curl);
Open commit View diff
3768 $stats = curl_exec($curl);
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3769
    if (!curl_errno($curl)) {
Open commit View diff
3769 if (!curl_errno($curl)) {
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3770
      $data_array = json_decode($stats, true);
Open commit View diff
3770 $data_array = json_decode($stats, true);
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3771
      curl_close($curl);
Open commit View diff
3771 curl_close($curl);
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3772
      return $data_array;
Open commit View diff
3772 return $data_array;
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3773
    }
Open commit View diff
3773 }
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3774
    curl_close($curl);
Open commit View diff
3774 curl_close($curl);
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3775
    return false;
Open commit View diff
3775 return false;
same change f3c7283

[Web] Add rspamd-stats route to API

Full commit hash
f3c72832f285643989583b22a3ff4e2a6fdc4e2f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
3776
  }
Open commit View diff
3776 }
andryyy about 9 years ago 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3777
  return false;
Open commit View diff
3777 return false;
same change 8c8bfc0

Add Json log parser for Dovecot and Postfix containers

Full commit hash
8c8bfc01085935a88a0388debf9d834b34549bb8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3778
}
Open commit View diff
3778 }
andryyy over 7 years ago ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3779
function getGUID() {
Open commit View diff
3779 function getGUID() {
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3780
  if (function_exists('com_create_guid')) {
Open commit View diff
3780 if (function_exists('com_create_guid')) {
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3781
    return com_create_guid();
Open commit View diff
3781 return com_create_guid();
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3782
  }
Open commit View diff
3782 }
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3783
  mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
Open commit View diff
3783 mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3784
  $charid = strtoupper(md5(uniqid(rand(), true)));
Open commit View diff
3784 $charid = strtoupper(md5(uniqid(rand(), true)));
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3785
  $hyphen = chr(45);// "-"
Open commit View diff
3785 $hyphen = chr(45);// "-"
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3786
  return substr($charid, 0, 8).$hyphen
Open commit View diff
3786 return substr($charid, 0, 8).$hyphen
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3787
        .substr($charid, 8, 4).$hyphen
Open commit View diff
3787 .substr($charid, 8, 4).$hyphen
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3788
        .substr($charid,12, 4).$hyphen
Open commit View diff
3788 .substr($charid,12, 4).$hyphen
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3789
        .substr($charid,16, 4).$hyphen
Open commit View diff
3789 .substr($charid,16, 4).$hyphen
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3790
        .substr($charid,20,12);
Open commit View diff
3790 .substr($charid,20,12);
same change ca9c610

[Web] Apple mobileconfig enhancements by @feldsam

Full commit hash
ca9c610460d9538a65ddf77c77fc89c50cf8cc40
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
3791
}
Open commit View diff
3791 }
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3792
Open commit View diff
3792
same change 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3793
function cleanupJS($ignore = '', $folder = '/tmp/*.js') {
Open commit View diff
3793 function cleanupJS($ignore = '', $folder = '/tmp/*.js') {
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3794
  $now = time();
Open commit View diff
3794 $now = time();
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3795
  foreach (glob($folder) as $filename) {
Open commit View diff
3795 foreach (glob($folder) as $filename) {
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3796
    if(strpos($filename, $ignore) !== false) {
Open commit View diff
3796 if(strpos($filename, $ignore) !== false) {
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3797
      continue;
Open commit View diff
3797 continue;
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3798
    }
Open commit View diff
3798 }
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3799
    if (is_file($filename)) {
Open commit View diff
3799 if (is_file($filename)) {
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3800
      if ($now - filemtime($filename) >= 60 * 60) {
Open commit View diff
3800 if ($now - filemtime($filename) >= 60 * 60) {
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3801
        unlink($filename);
Open commit View diff
3801 unlink($filename);
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3802
      }
Open commit View diff
3802 }
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3803
    }
Open commit View diff
3803 }
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3804
  }
Open commit View diff
3804 }
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3805
}
Open commit View diff
3805 }
same change 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3806
Open commit View diff
3806
same change 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3807
function cleanupCSS($ignore = '', $folder = '/tmp/*.css') {
Open commit View diff
3807 function cleanupCSS($ignore = '', $folder = '/tmp/*.css') {
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3808
  $now = time();
Open commit View diff
3808 $now = time();
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3809
  foreach (glob($folder) as $filename) {
Open commit View diff
3809 foreach (glob($folder) as $filename) {
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3810
    if(strpos($filename, $ignore) !== false) {
Open commit View diff
3810 if(strpos($filename, $ignore) !== false) {
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3811
      continue;
Open commit View diff
3811 continue;
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3812
    }
Open commit View diff
3812 }
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3813
    if (is_file($filename)) {
Open commit View diff
3813 if (is_file($filename)) {
same change 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3814
      if ($now - filemtime($filename) >= 60 * 60) {
Open commit View diff
3814 if ($now - filemtime($filename) >= 60 * 60) {
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3815
        unlink($filename);
Open commit View diff
3815 unlink($filename);
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3816
      }
Open commit View diff
3816 }
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3817
    }
Open commit View diff
3817 }
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3818
  }
Open commit View diff
3818 }
tinect almost 7 years ago 74244c7

cleanup cached js and css

Full commit hash
74244c7d0adf3f6ab8fdd37c7fabe5a3e933a861
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
3819
}
Open commit View diff
3819 }
andryyy over 6 years ago 3e2cbac

[Rspamd] 2.5 RC3

Full commit hash
3e2cbac7780128fc8aaa9a6a90dab46aa2da1bb3
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3820
Open commit View diff
3820
André Peters almost 5 years ago 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
André Peters <[email protected]>
Date
almost 5 years ago
Selected line
3821
?>
Open commit View diff
3821 ?>