362
362
user = ivle.database.User.get_by_login(req.store, login)
365
364
oldpassword = fields.getfirst('oldpass')
374
368
# If the user is trying to set a new password, check that they have
375
369
# entered old password and it authenticates.
376
370
if fields.getfirst('password') is not None:
380
374
req.headers_out['X-IVLE-Action-Error'] = \
381
375
urllib.quote("Old password incorrect.")