|
9 | 9 | # Copyright © 2014-2016 William Di Luigi <williamdiluigi@gmail.com> |
10 | 10 | # Copyright © 2015 Luca Chiodini <luca@chiodini.org> |
11 | 11 | # Copyright © 2016 Andrea Cracco <guilucand@gmail.com> |
12 | | -# Copyright © 2018 Edoardo Morassutto <edoardo.morassutto@gmail.com> |
13 | 12 | # |
14 | 13 | # This program is free software: you can redistribute it and/or modify |
15 | 14 | # it under the terms of the GNU Affero General Public License as |
|
40 | 39 | from cms.db import Contest, User, Task, Statement, Attachment, \ |
41 | 40 | Team, SubmissionFormatElement, Dataset, Manager, Testcase |
42 | 41 | from cms.grading.languagemanager import LANGUAGES, HEADER_EXTS |
43 | | -from cmscommon.crypto import build_password |
44 | 42 | from cmscommon.datetime import make_datetime |
45 | 43 | from cmscontrib import touch |
46 | 44 |
|
@@ -211,8 +209,6 @@ def get_contest(self): |
211 | 209 |
|
212 | 210 | tasks = load(conf, None, ["tasks", "problemi"]) |
213 | 211 | participations = load(conf, None, ["users", "utenti"]) |
214 | | - for p in participations: |
215 | | - p["password"] = build_password(p["password"]) |
216 | 212 |
|
217 | 213 | # Import was successful |
218 | 214 | os.remove(os.path.join(self.path, ".import_error_contest")) |
@@ -249,7 +245,7 @@ def get_user(self): |
249 | 245 | return None |
250 | 246 |
|
251 | 247 | load(conf, args, "username") |
252 | | - load(conf, args, "password", conv=build_password) |
| 248 | + load(conf, args, "password") |
253 | 249 |
|
254 | 250 | load(conf, args, ["first_name", "nome"]) |
255 | 251 | load(conf, args, ["last_name", "cognome"]) |
|
0 commit comments