mastodon/app/controllers
Eugen Rochko 5d2fc6de32
Add REST API for creating an account (#9572)
* Add REST API for creating an account

The method is available to apps with a token obtained via the client
credentials grant. It creates a user and account records, as well as
an access token for the app that initiated the request. The user is
unconfirmed, and an e-mail is sent as usual.

The method returns the access token, which the app should save for
later. The REST API is not available to users with unconfirmed
accounts, so the app must be smart to wait for the user to click a
link in their e-mail inbox.

The method is rate-limited by IP to 5 requests per 30 minutes.

* Redirect users back to app from confirmation if they were created with an app

* Add tests

* Return 403 on the method if registrations are not open

* Require agreement param to be true in the API when creating an account
2018-12-24 19:12:38 +01:00
..
activitypub Add specs for activitypub collections controller (#9484) 2018-12-10 21:39:25 +01:00
admin Add moderation warnings (#9519) 2018-12-22 20:02:09 +01:00
api Add REST API for creating an account (#9572) 2018-12-24 19:12:38 +01:00
auth Add REST API for creating an account (#9572) 2018-12-24 19:12:38 +01:00
concerns Remove RemoteAccountControllerConcern never used (#9482) 2018-12-10 21:38:01 +01:00
oauth Add force_login option to OAuth authorize page (#8655) 2018-09-09 04:10:44 +02:00
settings Create Settings::BaseController (#9507) 2018-12-12 22:32:13 +01:00
well_known
about_controller.rb Update /terms and /about/more to use public layout (#8142) 2018-08-09 12:58:20 +02:00
account_follow_controller.rb
account_unfollow_controller.rb
accounts_controller.rb Unuse ActiveRecord::Base#cache_key (#8185) 2018-08-19 15:52:38 +02:00
application_controller.rb Remove intermediary arrays when creating hash maps from results (#9291) 2018-11-16 15:02:18 +01:00
authorize_interactions_controller.rb Add remote interaction dialog for toots (#8202) 2018-08-18 03:03:12 +02:00
custom_css_controller.rb Add admin custom CSS setting (#8399) 2018-08-24 04:33:27 +02:00
directories_controller.rb Show 40 profiles per directory page instead of 30 (#9609) 2018-12-22 23:31:23 +01:00
emojis_controller.rb Unuse ActiveRecord::Base#cache_key (#8185) 2018-08-19 15:52:38 +02:00
filters_controller.rb Set @body_classes to admin layout (#9081) 2018-10-25 00:10:01 +02:00
follower_accounts_controller.rb
following_accounts_controller.rb
home_controller.rb Ensure single user is a local user (fixes #8154) (#8157) 2018-08-11 11:53:10 +02:00
intents_controller.rb Add remote interaction dialog for toots (#8202) 2018-08-18 03:03:12 +02:00
invites_controller.rb Set @body_classes to admin layout (#9081) 2018-10-25 00:10:01 +02:00
manifests_controller.rb
media_controller.rb fix CSP / X-Frame-Options for media embeds (#9558) 2018-12-18 16:40:30 +01:00
media_proxy_controller.rb
remote_follow_controller.rb Add remote interaction dialog for toots (#8202) 2018-08-18 03:03:12 +02:00
remote_interaction_controller.rb Add remote interaction dialog for toots (#8202) 2018-08-18 03:03:12 +02:00
remote_unfollows_controller.rb Add tests for remote_unfollows_controller (#7879) 2018-06-24 19:55:55 +09:00
shares_controller.rb
statuses_controller.rb Fix thread depth computation in statuses_controller (#9426) 2018-12-05 02:12:29 +01:00
stream_entries_controller.rb
tags_controller.rb Allow joining several hashtags in a single column (#8904) 2018-11-05 18:53:25 +01:00