diff --git a/lib/AuthMitEdu/View.pm b/lib/AuthMitEdu/View.pm index d6bbacd..82816d1 100644 --- a/lib/AuthMitEdu/View.pm +++ b/lib/AuthMitEdu/View.pm @@ -37,12 +37,12 @@ template 'index.html' => page { label => 'Doxory'); outs(") Enter "); - my $u = Jifty->web->current_user->username; - if ($u) { - tt{"http://auth.mit.edu/$u"}; - } else { - tt{"http://auth.mit.edu/your_username_here"}; - } + my $u = Jifty->web->current_user->user_object->username; + if ($u) { + tt{"http://auth.mit.edu/$u"}; + } else { + tt{"http://auth.mit.edu/your_username_here"}; + } outs(q{ into the OpenID login box. If your browser has MIT certificates installed, you should be prompted if you want to