from django.conf.urls import url
from users import views


urlpatterns = [

    # 注册
    url(r'^user_register/$', views.user_register, name='user_register'),
    # 登陆
    url(r'^user_login/$', views.user_login, name='user_login'),
    # 退出
    url(r'^user_logout/$', views.user_logout, name='user_logout'),
    # 注册账号激活
    url(r'^user_active/(\w+)$', views.user_active, name='user_active'),
    # 重置密码邮件验证码
    url(r'^user_forget/$', views.user_forget, name='user_forget'),
    # 重置密码
    url(r'^user_reset/(\w+)$', views.user_reset, name='user_reset'),

    # 个人用户中心-个人资料
    url(r'^user_info/$', views.user_info, name='user_info'),
    # 个人用户中心-个人资料-修改用户头像
    url(r'^user_changeimage/$', views.user_changeimage, name='user_changeimage'),
    # 个人用户中心-个人资料-修改用户信息
    url(r'^user_changeinfo/$', views.user_changeinfo, name='user_changeinfo'),
    # 个人用户中心-个人资料-修改用户邮箱-发送验证码
    url(r'^user_changeemail/$', views.user_changeemail, name='user_changeemail'),
    # 个人用户中心-个人资料-修改用户邮箱-完成
    url(r'^user_resetemail/$', views.user_resetemail, name='user_resetemail'),
    # 个人用户中心-我的课程
    url(r'^user_course/$', views.user_course, name='user_course'),
    # 个人用户中心-我的收藏(机构1)
    url(r'^user_loveorg/$', views.user_loveorg, name='user_loveorg'),
    # 个人用户中心-我的收藏(讲师3)
    url(r'^user_loveteacher/$', views.user_loveteacher, name='user_loveteacher'),
    # 个人用户中心-我的收藏(课程2)
    url(r'^user_lovecourse/$', views.user_lovecourse, name='user_lovecourse'),
    # 个人用户中心-我的消息
    url(r'^user_message/$', views.user_message, name='user_message'),
    # 个人用户中心-我的消息-未读消息变成已读消息
    url(r'^user_deletemessage/$', views.user_deletemessage, name='user_deletemessage'),

]
