X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=lib%2Fperl%2FBlerg-Database%2Flib%2FBlerg%2FDatabase.pm;h=e462860680b15ca0b7ee528e9c5c505f54200625;hb=4ebc59f7d9fbd644f2a6a4c5abda2cdd9dcb8476;hp=3c4ad1278e8da7f737a1d84db28ab5f0c86e70b2;hpb=72efa38cba27304a12485b8ef1376c9a9a39a32c;p=blerg.git diff --git a/lib/perl/Blerg-Database/lib/Blerg/Database.pm b/lib/perl/Blerg-Database/lib/Blerg/Database.pm index 3c4ad12..e462860 100644 --- a/lib/perl/Blerg-Database/lib/Blerg/Database.pm +++ b/lib/perl/Blerg-Database/lib/Blerg/Database.pm @@ -244,6 +244,30 @@ Validates that C is a valid tag name. Validates that C is a valid username. +=item configuration() + +Returns a hashref containing runtime configuration information. Contains these fields: + +=over + +=item base_path + +The base path to the Blërg database + +=item data_path + +The path under base_path for account data + +=item hash_tags_path + +The path under base_path for hashtag data + +=item ref_tags_path + +The path under base_path for mention data + +=back + =back =head2 AUTHENTICATION @@ -277,6 +301,13 @@ Checks that the token represents a valid session for the given username. Returns 1 if the session is valid, 0 otherwise. Also resets the expiration time of the session. +=item auth_get_counter(username) + +Gets an opaque "counter" value for the auth information of the given username. +This counter is changed every time the authentication information is changed, +making it useful for protecting password changes against replay attacks. +Returns a 32-bit integer on success, or undef on failure. + =back =head1 CONSTRUCTOR