def mypassword_post(request):
    """Change the authenticated user's password."""
    user = request.user
    user.set_password(request.validated['newpassword'])
    user.store(request.db)
    return dict(ok=True)