-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNOE-570] Storing the time of agreement to TOS #407
Conversation
The time of agreement of TOS is stored in user[:metadata][tos_accepted_at] It is then used in the /confirmation to create (or not) the TOS checkbox.
end | ||
end | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the extra space
@@ -92,6 +92,9 @@ def finalize | |||
end | |||
|
|||
if resource.errors.empty? | |||
if params[:tos] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you test params[:tos] == "accept"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The form can be submitted only when the TOS are accepted so it souldn't be required.
However, checking the exact string will improve clarity at no cost, I'm adding it.
The time of agreement of TOS is stored in user[:metadata][tos_accepted_at]
It is then used in the /confirmation to create (or not) the TOS checkbox.
@ouranos