Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tutor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbtools
tutor
Merge requests
!61
Update our docker image to Ubuntu 1604
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update our docker image to Ubuntu 1604
kb/ubuntu1604
into
master
Overview
1
Commits
30
Pipelines
0
Changes
6
Merged
Moritz Sichert
requested to merge
kb/ubuntu1604
into
master
7 years ago
Overview
1
Commits
30
Pipelines
0
Changes
6
Expand
Created by: kordianbruck
Merge changes from Linnea
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
30c5f57d
30 commits,
6 years ago
6 files
+
55
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
app/controllers/users_controller.rb
+
8
−
14
Options
@@ -109,25 +109,19 @@ class UsersController < ApplicationController
end
# Never trust parameters from the scary internet, only allow the white list through.
def
user_params
params
.
require
(
:user
).
permit
(
:email
,
:firstname
,
:lastname
,
:magictoken
,
:password
,
:password_confirmation
,
:role
)
def
user_params
#temporary change for to_datetime error of pass resetting
if
params
.
has_key?
(
:reset_password_sent_at
,
:remember_created_at
,
:current_sign_in_at
,
:last_sign_in_at
)
date
=
DateTime
.
parse
(
params
[
:reset_password_sent_at
],
params
[
:remember_created_at
],
params
[
:current_sign_in_at
],
params
[
:last_sign_in_at
])
else
date
=
DateTime
.
now
end
if
params
.
has_key?
(
:created_at
,
:updated_at
)
#for datetime error test this condition
if
params
.
has_key?
(
:created_at
,
:updated_at
)
date
=
DateTime
.
parse
(
params
[
:created_at
],
params
[
:updated_at
])
else
date
=
DateTime
.
now
end
params
.
require
(
:user
).
permit
(
:email
,
:firstname
,
:lastname
,
:magictoken
,
:password
,
:password_confirmation
,
:role
)
end
end
Loading