Django 1.10: Update code according to new get_user function.
Django 1.10: Update code according to new get_user function.

`django.contrib.auth.get_user` function is updated in Django 1.10, due to
which everytime we update the password of the user the password hash changes.
This causes authentication failure. Previously, our code worked correctly
because we use our own session middleware and the `get_user` code had a
conditional statement which allowed our code to bypass the authentication
code.

kou/zulip,paxapy/zulip,Juanvulcano/zulip,AZtheAsian/zulip,calvinleenyc/zulip,brockwhittaker/zulip,Juanvulcano/zulip,jrowan/zulip,dattatreya303/zulip,reyha/zulip,JPJPJPOPOP/zulip,paxapy/zulip,dattatreya303/zulip,cosmicAsymmetry/zulip,KingxBanana/zulip,amyliu345/zulip,joyhchen/zulip,rishig/zulip,verma-varsha/zulip,aakash-cr7/zulip,brockwhittaker/zulip,jphilipsen05/zulip,rishig/zulip,jackrzhang/zulip,souravbadami/zulip,Diptanshu8/zulip,dattatreya303/zulip,SmartPeople/zulip,brockwhittaker/zulip,tommyip/zulip,blaze225/zulip,andersk/zulip,andersk/zulip,verma-varsha/zulip,jainayush975/zulip,reyha/zulip,kou/zulip,grave-w-grave/zulip,grave-w-grave/zulip,eeshangarg/zulip,j831/zulip,shubhamdhama/zulip,mahim97/zulip,sonali0901/zulip,jackrzhang/zulip,rishig/zulip,rht/zulip,brockwhittaker/zulip,rht/zulip,Jianchun1/zulip,j831/zulip,brainwane/zulip,KingxBanana/zulip,jackrzhang/zulip,rht/zulip,souravbadami/zulip,peguin40/zulip,rishig/zulip,PhilSk/zulip,vikas-parashar/zulip,rht/zulip,PhilSk/zulip,samatdav/zulip,PhilSk/zulip,hackerkid/zulip,rishig/zulip,peguin40/zulip,jainayush975/zulip,zacps/zulip,peguin40/zulip,niftynei/zulip,amanharitsh123/zulip,dhcrzf/zulip,shubhamdhama/zulip,souravbadami/zulip,ryanbackman/zulip,punchagan/zulip,jrowan/zulip,jphilipsen05/zulip,j831/zulip,JPJPJPOPOP/zulip,Galexrt/zulip,vaidap/zulip,aakash-cr7/zulip,christi3k/zulip,verma-varsha/zulip,souravbadami/zulip,andersk/zulip,isht3/zulip,jrowan/zulip,christi3k/zulip,susansls/zulip,AZtheAsian/zulip,hackerkid/zulip,Galexrt/zulip,christi3k/zulip,aakash-cr7/zulip,ryanbackman/zulip,PhilSk/zulip,KingxBanana/zulip,amanharitsh123/zulip,punchagan/zulip,Galexrt/zulip,vaidap/zulip,synicalsyntax/zulip,aakash-cr7/zulip,jphilipsen05/zulip,timabbott/zulip,mahim97/zulip,KingxBanana/zulip,tommyip/zulip,grave-w-grave/zulip,punchagan/zulip,eeshangarg/zulip,mahim97/zulip,mahim97/zulip,zacps/zulip,shubhamdhama/zulip,KingxBanana/zulip,shubhamdhama/zulip,susansls/zulip,blaze225/zulip,calvinleenyc/zulip,vabs22/zulip,vikas-parashar/zulip,rishig/zulip,jackrzhang/zulip,amyliu345/zulip,niftynei/zulip,sharmaeklavya2/zulip,rishig/zulip,tommyip/zulip,samatdav/zulip,PhilSk/zulip,susansls/zulip,AZtheAsian/zulip,sonali0901/zulip,mahim97/zulip,punchagan/zulip,kou/zulip,eeshangarg/zulip,verma-varsha/zulip,ryanbackman/zulip,Juanvulcano/zulip,samatdav/zulip,calvinleenyc/zulip,vabs22/zulip,showell/zulip,joyhchen/zulip,brainwane/zulip,arpith/zulip,Galexrt/zulip,kou/zulip,joyhchen/zulip,Diptanshu8/zulip,jrowan/zulip,andersk/zulip,shubhamdhama/zulip,grave-w-grave/zulip,jackrzhang/zulip,cosmicAsymmetry/zulip,timabbott/zulip,hackerkid/zulip,vaidap/zulip,andersk/zulip,amyliu345/zulip,TigorC/zulip,calvinleenyc/zulip,blaze225/zulip,TigorC/zulip,niftynei/zulip,eeshangarg/zulip,Jianchun1/zulip,jrowan/zulip,dawran6/zulip,dhcrzf/zulip,SmartPeople/zulip,blaze225/zulip,tommyip/zulip,kou/zulip,cosmicAsymmetry/zulip,peguin40/zulip,hackerkid/zulip,hackerkid/zulip,shubhamdhama/zulip,synicalsyntax/zulip,sonali0901/zulip,showell/zulip,amanharitsh123/zulip,dattatreya303/zulip,synicalsyntax/zulip,KingxBanana/zulip,niftynei/zulip,joyhchen/zulip,zulip/zulip,sonali0901/zulip,dawran6/zulip,punchagan/zulip,Diptanshu8/zulip,AZtheAsian/zulip,SmartPeople/zulip,timabbott/zulip,zulip/zulip,paxapy/zulip,j831/zulip,vabs22/zulip,sharmaeklavya2/zulip,kou/zulip,dattatreya303/zulip,rht/zulip,dattatreya303/zulip,reyha/zulip,zulip/zulip,samatdav/zulip,arpith/zulip,JPJPJPOPOP/zulip,zulip/zulip,joyhchen/zulip,vikas-parashar/zulip,tommyip/zulip,arpith/zulip,dawran6/zulip,showell/zulip,timabbott/zulip,zulip/zulip,Diptanshu8/zulip,christi3k/zulip,grave-w-grave/zulip,ryanbackman/zulip,timabbott/zulip,souravbadami/zulip,jainayush975/zulip,showell/zulip,brainwane/zulip,susansls/zulip,dhcrzf/zulip,vaidap/zulip,synicalsyntax/zulip,Juanvulcano/zulip,niftynei/zulip,rht/zulip,susansls/zulip,jainayush975/zulip,dhcrzf/zulip,paxapy/zulip,dawran6/zulip,isht3/zulip,punchagan/zulip,jackrzhang/zulip,zulip/zulip,TigorC/zulip,christi3k/zulip,JPJPJPOPOP/zulip,brockwhittaker/zulip,calvinleenyc/zulip,ryanbackman/zulip,joyhchen/zulip,dhcrzf/zulip,brainwane/zulip,peguin40/zulip,eeshangarg/zulip,blaze225/zulip,amanharitsh123/zulip,blaze225/zulip,jainayush975/zulip,arpith/zulip,isht3/zulip,amyliu345/zulip,PhilSk/zulip,cosmicAsymmetry/zulip,tommyip/zulip,vikas-parashar/zulip,Jianchun1/zulip,zulip/zulip,brainwane/zulip,SmartPeople/zulip,Jianchun1/zulip,paxapy/zulip,hackerkid/zulip,christi3k/zulip,Jianchun1/zulip,vabs22/zulip,reyha/zulip,reyha/zulip,reyha/zulip,arpith/zulip,jphilipsen05/zulip,Jianchun1/zulip,brainwane/zulip,Galexrt/zulip,amyliu345/zulip,mahim97/zulip,j831/zulip,cosmicAsymmetry/zulip,souravbadami/zulip,JPJPJPOPOP/zulip,andersk/zulip,dawran6/zulip,samatdav/zulip,jainayush975/zulip,zacps/zulip,paxapy/zulip,dhcrzf/zulip,calvinleenyc/zulip,Galexrt/zulip,sharmaeklavya2/zulip,brockwhittaker/zulip,andersk/zulip,showell/zulip,kou/zulip,grave-w-grave/zulip,amyliu345/zulip,showell/zulip,susansls/zulip,aakash-cr7/zulip,timabbott/zulip,samatdav/zulip,SmartPeople/zulip,aakash-cr7/zulip,vikas-parashar/zulip,synicalsyntax/zulip,tommyip/zulip,synicalsyntax/zulip,Galexrt/zulip,punchagan/zulip,TigorC/zulip,vaidap/zulip,Juanvulcano/zulip,isht3/zulip,sharmaeklavya2/zulip,AZtheAsian/zulip,sonali0901/zulip,TigorC/zulip,jrowan/zulip,jackrzhang/zulip,sharmaeklavya2/zulip,brainwane/zulip,vikas-parashar/zulip,isht3/zulip,Juanvulcano/zulip,cosmicAsymmetry/zulip,verma-varsha/zulip,zacps/zulip,amanharitsh123/zulip,arpith/zulip,verma-varsha/zulip,ryanbackman/zulip,Diptanshu8/zulip,j831/zulip,hackerkid/zulip,dhcrzf/zulip,shubhamdhama/zulip,peguin40/zulip,vaidap/zulip,jphilipsen05/zulip,Diptanshu8/zulip,zacps/zulip,eeshangarg/zulip,sonali0901/zulip,amanharitsh123/zulip,rht/zulip,synicalsyntax/zulip,sharmaeklavya2/zulip,vabs22/zulip,dawran6/zulip,niftynei/zulip,vabs22/zulip,timabbott/zulip,zacps/zulip,isht3/zulip,TigorC/zulip,showell/zulip,eeshangarg/zulip,JPJPJPOPOP/zulip,AZtheAsian/zulip,jphilipsen05/zulip,SmartPeople/zulip