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/reset-password.php

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

reset-password.php on main
Author Date Commit Line Code
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
1
<?php
Open commit View diff
1 <?php
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
2
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
Open commit View diff
2 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
FreddleSpl0it over 1 year ago db3a577

[Web] Fix password reset

Full commit hash
db3a577ae3b1cd8211bf88da7d8bedaddda31e3a
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.user.inc.php';
Open commit View diff
3 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.user.inc.php';
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
4
Open commit View diff
4
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
5
if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') {
Open commit View diff
5 if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') {
FreddleSpl0it over 1 year ago aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
6
  header('Location: /admin/dashboard');
Open commit View diff
6 header('Location: /admin/dashboard');
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
7
  exit();
Open commit View diff
7 exit();
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
8
}
Open commit View diff
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
9
elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'domainadmin') {
Open commit View diff
9 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'domainadmin') {
FreddleSpl0it over 1 year ago aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
10
  header('Location: /domainadmin/mailbox');
Open commit View diff
10 header('Location: /domainadmin/mailbox');
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
11
  exit();
Open commit View diff
11 exit();
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
12
}
Open commit View diff
12 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
13
elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user') {
Open commit View diff
13 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '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
14
  header('Location: /user');
Open commit View diff
14 header('Location: /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
15
  exit();
Open commit View diff
15 exit();
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
16
}
Open commit View diff
16 }
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
17
Open commit View diff
17
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
18
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
Open commit View diff
18 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
19
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
Open commit View diff
19 $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
20
$_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
Open commit View diff
20 $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
21
Open commit View diff
21
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
22
if (isset($_GET['token'])) $is_reset_token_valid = reset_password("check", $_GET['token']);
Open commit View diff
22 if (isset($_GET['token'])) $is_reset_token_valid = reset_password("check", $_GET['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
23
else $is_reset_token_valid = False;
Open commit View diff
23 else $is_reset_token_valid = 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
24
Open commit View diff
24
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
25
$template = 'reset-password.twig';
Open commit View diff
25 $template = 'reset-password.twig';
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
26
$template_data = [
Open commit View diff
26 $template_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
27
  'is_mobileconfig' => str_contains($_SESSION['index_query_string'], 'mobileconfig'),
Open commit View diff
27 'is_mobileconfig' => str_contains($_SESSION['index_query_string'], 'mobileconfig'),
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
28
  'is_reset_token_valid' => $is_reset_token_valid,
Open commit View diff
28 'is_reset_token_valid' => $is_reset_token_valid,
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
29
  'reset_token' => $_GET['token']
Open commit View diff
29 'reset_token' => $_GET['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
30
];
Open commit View diff
30 ];
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
31
Open commit View diff
31
same change 2208d7e

[Web] add function to reset user passwords

Full commit hash
2208d7e6fb2864e2ddc672104b61b2a496fc1e02
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
32
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
Open commit View diff
32 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';