diff options
author | Yorhel <git@yorhel.nl> | 2019-09-23 11:01:17 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-23 11:01:17 +0200 |
commit | 9ccafba60b8de37b0c2a202d22df5c3e25b78026 (patch) | |
tree | ae150b0c25282a646e1d71868022ad4a5789e60a /lib/VNWeb/Auth.pm | |
parent | 4542d952f782ee193dbf279cd8186cba0e9d87a4 (diff) |
v2rw: Convert doc pages + add framework for item fetching & display & revisions
This bumps the minimum Perl version to 5.26 in order to make use of
lexical subroutines - a feature I've been wanting for a while. This
should be the last version bump, 5.26 is the highest version in Ubuntu
LTS at the moment. Not that I use Ubuntu, but it's used by the Docker
container and it's a sensible reference.
I merged the 'maintabs' and 'hiddenmsg' features into the primary
framework_ function; It fits quite well there, removes a little bit
of boilerplate from the DB entry page code and reduces the reliance on
common "dbSomethingGet()" methods.
I was hoping I'd be able to reduce the boilerplate required for defining
revisions, but I don't think that's going to happen. What I did do was
reimplement the diffing to handle item and text diffs separately, with
sensible defaults for the old split/join/diff options. Diffing is now
performed on the raw structured data rather than on formatted HTML,
which, combined with the db_entry() functions, ought to be less brittle.
Diffstat (limited to 'lib/VNWeb/Auth.pm')
-rw-r--r-- | lib/VNWeb/Auth.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VNWeb/Auth.pm b/lib/VNWeb/Auth.pm index 22a96de5..493db3f4 100644 --- a/lib/VNWeb/Auth.pm +++ b/lib/VNWeb/Auth.pm @@ -209,7 +209,6 @@ sub resetpass { my $id = tuwf->dbVali( select => sql_func(user_resetpass => \$mail, sql_fromhex sha1_hex lc $token) ); - warn $id; return $id ? ($id, $token) : (); } |