Commit 0c5d9963 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to previous revision; watch for newusers with no account.

parent 987068fe
......@@ -260,6 +260,10 @@ my $this_user;
if (getpwuid($UID) eq "nobody") {
# The web interface sets this.
$this_user = User->ImpliedUser();
# This can happen using the forget password link; user not logged in.
if (!defined($this_user)) {
$this_user = $target_user;
else {
$this_user = User->ThisUser();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment