diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a70fc66 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "admin"] + path = admin + url = git@tilde.team:meta/admin-app diff --git a/admin b/admin new file mode 160000 index 0000000..bb4c72f --- /dev/null +++ b/admin @@ -0,0 +1 @@ +Subproject commit bb4c72fc4dee460ba5d5e59b04c332449a9095fe diff --git a/admin/index.php b/admin/index.php deleted file mode 100644 index c71de71..0000000 --- a/admin/index.php +++ /dev/null @@ -1,27 +0,0 @@ -sudoer; - if ($auth) { - echo "you're a sudoer"; - } else { - echo "you don't have sudo. go away."; - } -} -?> - -

tilde.team admin console

- -
- - - -
- -=5.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\Lexer\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "lexer", - "parser" - ], - "time": "2014-09-09T13:34:57+00:00" - }, - { - "name": "egulias/email-validator", - "version": "2.1.4", - "source": { - "type": "git", - "url": "https://github.com/egulias/EmailValidator.git", - "reference": "8790f594151ca6a2010c6218e09d96df67173ad3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/8790f594151ca6a2010c6218e09d96df67173ad3", - "reference": "8790f594151ca6a2010c6218e09d96df67173ad3", - "shasum": "" - }, - "require": { - "doctrine/lexer": "^1.0.1", - "php": ">= 5.5" - }, - "require-dev": { - "dominicsayers/isemail": "dev-master", - "phpunit/phpunit": "^4.8.35||^5.7||^6.0", - "satooshi/php-coveralls": "^1.0.1" - }, - "suggest": { - "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Egulias\\EmailValidator\\": "EmailValidator" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eduardo Gulias Davis" - } - ], - "description": "A library for validating emails against several RFCs", - "homepage": "https://github.com/egulias/EmailValidator", - "keywords": [ - "email", - "emailvalidation", - "emailvalidator", - "validation", - "validator" - ], - "time": "2018-04-10T10:11:19+00:00" - }, { "name": "erusev/parsedown", "version": "1.7.1", @@ -198,61 +87,6 @@ ], "time": "2017-10-29T19:29:55+00:00" }, - { - "name": "swiftmailer/swiftmailer", - "version": "v6.0.2", - "source": { - "type": "git", - "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "412333372fb6c8ffb65496a2bbd7321af75733fc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/412333372fb6c8ffb65496a2bbd7321af75733fc", - "reference": "412333372fb6c8ffb65496a2bbd7321af75733fc", - "shasum": "" - }, - "require": { - "egulias/email-validator": "~2.0", - "php": ">=7.0.0" - }, - "require-dev": { - "mockery/mockery": "~0.9.1", - "symfony/phpunit-bridge": "~3.3@dev" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.0-dev" - } - }, - "autoload": { - "files": [ - "lib/swift_required.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Chris Corbyn" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "Swiftmailer, free feature-rich PHP mailer", - "homepage": "http://swiftmailer.symfony.com", - "keywords": [ - "email", - "mail", - "mailer" - ], - "time": "2017-09-30T22:39:41+00:00" - }, { "name": "symfony/polyfill-ctype", "version": "v1.8.0", diff --git a/signup/signup-handler.php b/signup/signup-handler.php index c980745..0b3cecf 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -35,11 +35,13 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { if ($message == "") { // no validation errors - $msgbody = "desired username: {$_REQUEST["username"]} - contact email: {$_REQUEST["email"]} - reason: {$_REQUEST["interest"]} - ssh key: - {$_REQUEST["sshkey"]}"; + $msgbody = " +desired username: {$_REQUEST["username"]} +contact email: {$_REQUEST["email"]} +reason: {$_REQUEST["interest"]} +ssh key: +{$_REQUEST["sshkey"]} +"; if (mail('sudoers', 'new tilde.team signup', $msgbody, "Reply-To: {$_REQUEST["email"]}")) { echo '