diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-10-02 12:21:55 +0200 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-10-02 12:21:55 +0200 |
commit | f05f47807e0087ece7ac8391a9b801196a6e5b18 (patch) | |
tree | 5b1451ccd62ed8411eb54e69f43df42731ee22ed | |
parent | ca32f0aae03c7e26c4bd9e53f6ef25f187c9da52 (diff) |
cleaning stuff
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | appinfo/routes.php | 2 | ||||
-rw-r--r-- | lib/Controller/AccountController.php | 1 | ||||
-rw-r--r-- | src/App.vue | 6 |
3 files changed, 1 insertions, 8 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 4a7ef39d..dc3d19f9 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -11,7 +11,7 @@ return [ 'routes' => [ ['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'], - ['name' => 'Account#create', 'url' => '/local/account/{username}', 'verb' => 'GET'], + ['name' => 'Account#create', 'url' => '/local/account/{username}', 'verb' => 'POST'], ['name' => 'ActivityPub#sharedInbox', 'url' => '/inbox', 'verb' => 'POST'], ['name' => 'ActivityPub#actor', 'url' => '/users/{username}', 'verb' => 'GET'], diff --git a/lib/Controller/AccountController.php b/lib/Controller/AccountController.php index c3eed9b1..75fba6f2 100644 --- a/lib/Controller/AccountController.php +++ b/lib/Controller/AccountController.php @@ -83,7 +83,6 @@ class AccountController extends Controller { * Called by the frontend to create a new Social account * * @NoAdminRequired - * @NoCSRFRequired * * @param string $username * diff --git a/src/App.vue b/src/App.vue index b6b2276e..e347f5a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,12 +7,6 @@ </div> <div id="app-content"> <div class="social__container"> - Add an account: - <input type="text" id="social-instance-new-account" placeholder="mastodon.social" /> - <input type="submit" id="social-submit-new-account" /><br /> - - Accounts: <select id="social-list-accounts"></select><input type="submit" id="social-submit-account-test" value="Test this account" /><br /> - <h2>🎉 Nextcloud becomes part of the federated social networks!</h2> </div> </div> |