Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33095802
auth_controller.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
740 B
Referenced Files
None
Subscribers
None
auth_controller.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.MastodonAPI.AuthController
do
use
Pleroma.Web
,
:controller
import
Pleroma.Web.ControllerHelper
,
only
:
[
json_response
:
3
]
alias
Pleroma.Web.TwitterAPI.TwitterAPI
action_fallback
(
Pleroma.Web.MastodonAPI.FallbackController
)
plug
(
Pleroma.Web.Plugs.RateLimiter
,
[
name
:
:password_reset
]
when
action
==
:password_reset
)
@doc
"POST /auth/password"
def
password_reset
(
conn
,
params
)
do
nickname_or_email
=
params
[
"email"
]
||
params
[
"nickname"
]
TwitterAPI
.
password_reset
(
nickname_or_email
)
json_response
(
conn
,
:no_content
,
""
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 9:42 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
972886
Default Alt Text
auth_controller.ex (740 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment