Description:
hacked user creation to bypass member name validation, changed default config for test pair import
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r261:432c3e723bef - - 2 files changed: 2 inserted, 1 deleted
@@ -35,12 +35,13 | |||
|
35 | 35 | def new |
|
36 | 36 | @user = User.new |
|
37 | 37 | end |
|
38 | 38 | |
|
39 | 39 | def create |
|
40 | 40 | @user = User.new(params[:user]) |
|
41 | + @user.member1_full_name = @user.full_name | |
|
41 | 42 | @user.activated = true |
|
42 | 43 | if @user.save |
|
43 | 44 | flash[:notice] = 'User was successfully created.' |
|
44 | 45 | redirect_to :action => 'list' |
|
45 | 46 | else |
|
46 | 47 | render :action => 'new' |
@@ -89,13 +89,13 | |||
|
89 | 89 | |
|
90 | 90 | # TODO: change this to where results are kept. |
|
91 | 91 | GRADING_RESULT_DIR = 'RESULT-DIR' |
|
92 | 92 | |
|
93 | 93 | # Change this to allow importing testdata into database as test-pairs. |
|
94 | 94 | # This is mainly for Code Jom contest. |
|
95 |
- ALLOW_TEST_PAIR_IMPORT = |
|
|
95 | + ALLOW_TEST_PAIR_IMPORT = true | |
|
96 | 96 | |
|
97 | 97 | # Uncomment so that the system validates user e-mails |
|
98 | 98 | # VALIDATE_USER_EMAILS = true |
|
99 | 99 | |
|
100 | 100 | # Uncomment so that Apache X-Sendfile is used when delivering files |
|
101 | 101 | # (e.g., in /tasks/view). |
You need to be logged in to leave comments.
Login now