Remove session db based token storage.
This commit is contained in:
parent
415db65a70
commit
79e6e7aed6
2 changed files with 0 additions and 16 deletions
|
|
@ -31,7 +31,6 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
addSessionTokenId($session);
|
||||
correctPostMetaData($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
|
@ -46,18 +45,6 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addSessionTokenId {
|
||||
my $session = shift;
|
||||
print "\tAdding CSRF token to userSession, if needed... " unless $quiet;
|
||||
my $sth = $session->db->read('describe userSession tokenId');
|
||||
if (! defined $sth->hashRef) {
|
||||
$session->db->write(q|ALTER TABLE userSession ADD COLUMN tokenId CHAR(22)|);
|
||||
}
|
||||
# and here's our code
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub correctPostMetaData {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue