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 '
diff --git a/wiki/pages/administration.md b/wiki/pages/administration.md
index e6ac2a5..e5420ed 100644
--- a/wiki/pages/administration.md
+++ b/wiki/pages/administration.md
@@ -19,13 +19,12 @@ sudo adduser newusername
```
use the default password `tilde`
-1. respond to their email with their account information
+1. su newusername and then copy the ssh key into ~/.ssh/known_hosts
-1. click the link in the signup email from the server to open the domain control panel and add their forwarding address if they've opted in
+1. respond to their email with their account information (template coming soon), including a reminder to set up their .forward file if desired, and encourge them to hop onto irc/#meta to meet the community
-1. profit??
-account creation is something that i would like to look into. maybe this can be an admin portal (similar to ~town) that would notify admins when a new signup arrives and prompt them to go to the web interface to approve/deny/respond to the account request.
+automated account creation is something that i would like to look into. maybe this can be an admin portal (similar to ~town) that would notify admins when a new signup arrives and prompt them to go to the web interface to approve/deny/respond to the account request.
---