Backported a bug for user authentication.

The token does not exist for people who are using the static authentication method. This was fixed in 2.15 and is now being backported to 2.14.