Handbook
Glossary
<register-action> ( -- action )
Vocabulary
furnace.auth.features.registration
Inputs
None
Outputs
action
an
object
Definition
USING:
accessors
furnace.actions
furnace.auth
furnace.auth.providers
html.forms
kernel
namespaces
validators
;
IN:
furnace.auth.features.registration
:
<register-action>
( -- action )
<page-action>
{
realm
"features/registration/register"
}
>>template
[
{
{
"username"
[
v-username
]
}
{
"realname"
[
[
v-one-line
]
v-optional
]
}
{
"new-password"
[
v-password
]
}
{
"verify-password"
[
v-password
]
}
{
"email"
[
[
v-email
]
v-optional
]
}
{
"captcha"
[
v-captcha
]
}
}
validate-params
same-password-twice
]
>>validate
[
"username"
value
<user>
"realname"
value
>>realname
"new-password"
value
>>encoded-password
"email"
value
>>email
H{
}
clone
>>profile
users
new-user
[
user-exists
]
unless*
realm
get
init-user-profile
realm
get
user-registered
]
>>submit
<auth-boilerplate>
<secure-realm-only>
;