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/oauth/profile.php

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

profile.php on main
Author Date Commit Line Code
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 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';
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
3
Open commit View diff
3
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
4
if (!$oauth2_server->verifyResourceRequest(OAuth2\Request::createFromGlobals())) {
Open commit View diff
4 if (!$oauth2_server->verifyResourceRequest(OAuth2\Request::createFromGlobals())) {
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
5
  $oauth2_server->getResponse()->send();
Open commit View diff
5 $oauth2_server->getResponse()->send();
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
6
  die;
Open commit View diff
6 die;
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
7
}
Open commit View diff
7 }
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
8
$token = $oauth2_server->getAccessTokenData(OAuth2\Request::createFromGlobals());
Open commit View diff
8 $token = $oauth2_server->getAccessTokenData(OAuth2\Request::createFromGlobals());
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
9
$stmt = $pdo->prepare("SELECT * FROM `mailbox` WHERE `username` = :username AND `active` = '1'");
Open commit View diff
9 $stmt = $pdo->prepare("SELECT * FROM `mailbox` WHERE `username` = :username AND `active` = '1'");
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
10
$stmt->execute(array(':username' => $token['user_id']));
Open commit View diff
10 $stmt->execute(array(':username' => $token['user_id']));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
11
$mailbox = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
11 $mailbox = $stmt->fetch(PDO::FETCH_ASSOC);
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
12
if (!empty($mailbox)) {
Open commit View diff
12 if (!empty($mailbox)) {
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
13
  if ($token['scope'] == 'profile') {
Open commit View diff
13 if ($token['scope'] == 'profile') {
andryyy almost 6 years ago 7d48831

[Web] oAuth: Fix content type in profile reply, thanks to @this-user - fixes #3716

Full commit hash
7d488317890fb9f1be6c90d23ccd3f93375e8c83
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
14
    header('Content-Type: application/json');
Open commit View diff
14 header('Content-Type: application/json');
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
15
    echo json_encode(array(
Open commit View diff
15 echo json_encode(array(
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
16
      'success' => true,
Open commit View diff
16 'success' => true,
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
17
      'username' => $token['user_id'],
Open commit View diff
17 'username' => $token['user_id'],
tunnelpr0 almost 5 years ago 62fbaf8

[Web, oAuth2] Add id parameter to profile.php (#4235)

Full commit hash
62fbaf8248643b24bfd24bdd46f554dfda88a3f1
Author
tunnelpr0 <[email protected]>
Date
almost 5 years ago
Selected line
18
      'id' => $token['user_id'],
Open commit View diff
18 'id' => $token['user_id'],
Michael Kuron almost 7 years ago c874781

Add identifier to oauth profile

Full commit hash
c874781931e854721da8e204cc8c266bb0eb6192
Author
Michael Kuron <[email protected]>
Date
almost 7 years ago
Selected line
19
      'identifier' => $token['user_id'],
Open commit View diff
19 'identifier' => $token['user_id'],
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
20
      'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''),
Open commit View diff
20 'email' => (!empty($mailbox['username']) ? $mailbox['username'] : ''),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
21
      'full_name' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
Open commit View diff
21 'full_name' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
Michael Kuron over 6 years ago 1db4d3d

OAuth: add displayName attribute to profile for Nextcloud compatibility

Full commit hash
1db4d3d7477f3978c703195b7e23d4057fbd7247
Author
Michael Kuron <[email protected]>
Date
over 6 years ago
Selected line
22
      'displayName' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
Open commit View diff
22 'displayName' => (!empty($mailbox['name']) ? $mailbox['name'] : 'mailcow administrative user'),
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
23
      'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''),
Open commit View diff
23 'created' => (!empty($mailbox['created']) ? $mailbox['created'] : ''),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
24
      'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''),
Open commit View diff
24 'modified' => (!empty($mailbox['modified']) ? $mailbox['modified'] : ''),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
25
      'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''),
Open commit View diff
25 'active' => (!empty($mailbox['active']) ? $mailbox['active'] : ''),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
26
    ));
Open commit View diff
26 ));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
27
    exit;
Open commit View diff
27 exit;
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
28
  }
Open commit View diff
28 }
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
29
}
Open commit View diff
29 }
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
30
echo json_encode(array(
Open commit View diff
30 echo json_encode(array(
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
31
  'success' => false
Open commit View diff
31 'success' => false
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
32
));
Open commit View diff
32 ));