<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/5 Duncan Coutts <span dir="ltr">&lt;<a href="mailto:duncan@well-typed.com" target="_blank">duncan@well-typed.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, 2013-04-04 at 22:38 +0400, Lennart Kolmodin wrote:<br>
<br>
&gt; I tried to login with my username/pw, but failed.<br>
&gt;<br>
&gt; Here&#39;s what I did:<br>
&gt; I go to a package I&#39;ve published and hit &quot;edit package information&quot; in the<br>
&gt; Maintainers&#39; corner.<br>
&gt; It prompts me to login.<br>
&gt; If I hit cancel, it shows No authorization provided.<br>
&gt; If I type a random username/pw it keeps asking me.<br>
&gt; If I type my actual username/pw it asks me several times, then my<br>
&gt; webbrowser shows &quot;This webpage is not available&quot; (ie. not an error message<br>
&gt; from hackage). At one point it showed me a page where I could upgrade my<br>
&gt; account (and I haven&#39;t yet), but it does not show that page any more.<br>
&gt; I tried several times, it repeatedly shows me &quot;This webpage is not<br>
&gt; available&quot;.<br>
<br>
</div>What browser are you using?<br></blockquote><div><br></div><div style>I just tried again, and it worked. Now I also upgraded the account. I tried again to login to the upgraded account, it worked.</div><div style><br>
</div><div style>I was using Chrome 26 when I tried to login a few days ago, now I&#39;m using Chrome 27.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I&#39;m going to try changing the status we return in this situation from<br>
401 to 403. That is, if you have an existing account but it has an<br>
old-style password that needs to be upgraded, then instead of returning<br>
a 401 response with a page linking to the upgrade page, we return a 403.<br>
<br>
In firefox the current responses work fine, but looking at the RFC it<br>
makes it clear that 401 isn&#39;t the right response in this case. So I&#39;ll<br>
try 403.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Duncan Coutts, Haskell Consultant<br>
Well-Typed LLP, <a href="http://www.well-typed.com/" target="_blank">http://www.well-typed.com/</a><br>
<br>
</div></div></blockquote></div><br></div></div>