Check that the token is valid before using it.
This commit is contained in:
parent
16030e0381
commit
2e202460e6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
<%= render :partial => 'search' %>
|
||||
|
||||
<%
|
||||
session[:token] = @user.tokens.create.token unless session[:token]
|
||||
session[:token] = @user.tokens.create.token unless session[:token] and UserToken.find_by_token(session[:token])
|
||||
|
||||
# Decide on a lat lon to initialise potlatch with. Various ways of doing this
|
||||
if params['lon'] and params['lat']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue