Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F84164738
authenticator.ex
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
869 B
Referenced Files
None
Subscribers
None
authenticator.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.Auth.Authenticator
do
@callback
get_user
(
Plug.Conn
.
t
())
::
{
:ok
,
user
::
struct
()}
|
{
:error
,
any
()}
@callback
create_from_registration
(
Plug.Conn
.
t
(),
registration
::
struct
())
::
{
:ok
,
Pleroma.User
.
t
()}
|
{
:error
,
any
()}
@callback
get_registration
(
Plug.Conn
.
t
())
::
{
:ok
,
registration
::
struct
()}
|
{
:error
,
any
()}
@callback
handle_error
(
Plug.Conn
.
t
(),
any
())
::
any
()
@callback
auth_template
()
::
String
.
t
()
|
nil
@callback
oauth_consumer_template
()
::
String
.
t
()
|
nil
@callback
change_password
(
Pleroma.User
.
t
(),
String
.
t
(),
String
.
t
(),
String
.
t
())
::
{
:ok
,
Pleroma.User
.
t
()}
|
{
:error
,
term
()}
@optional_callbacks
change_password
:
4
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 4, 6:25 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1537024
Default Alt Text
authenticator.ex (869 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment