11 Commits

Author SHA1 Message Date
Erik Thuning
e640c24515 FIX: Initiating a loan from a product no longer requires the user to already exist.
Loans created on the checkout page and the product page used different
functions to look up users, causing inconsistent behaviour. Now both use the
"advanced" user lookup that will initialize users that don't currently exist
in the system.
2025-03-13 14:49:34 +01:00
Erik Thuning
e953f6c7a5 Made the loan length preset buttons configurable in config.php
Supported length keywords are day, week, month and year. The plural forms
are also valid. There may be minor differences in the semantics of
the time string between the preset list and the default length setting,
due to the default length being computed by php's Date object,
while the preset list is computed in javascript on the client side.
2025-03-13 14:36:37 +01:00
Erik Thuning
16f48cd28d Made the deafult loan length configurable in config.php 2025-03-13 11:27:43 +01:00
Erik Thuning
bf696127a9 Reworked email lookup logic on CheckoutPage,
so a user will be automatically created if their email address exists in sukat but doesn't have a corresponding boka user yet.
2024-02-27 15:49:52 +01:00
Erik Thuning
362ee182cb Found some untranslated strings 2024-02-27 13:35:35 +01:00
Erik Thuning
4fbffa1402 Changed checkoutPage email search behaviour
Now a default domain is appended on email string that don't contain an @ character
2021-09-22 15:39:50 +02:00
Erik Thuning
cb4a3b131a Implemented picking users based on email on the checkout page 2021-09-22 15:14:35 +02:00
root
9f4bc39e55 Testing a hopefully faster ldap lookup 2021-09-15 11:43:36 +02:00
Erik Thuning
d4f3ff7704 Added some username cleanup 2019-09-13 11:32:18 +02:00
Erik Thuning
1b0f27b2e9 Refactoring to support the new database structure and event model 2019-07-23 15:32:33 +02:00
Erik Thuning
692c2e0aeb Broke all classes into separate files and activated class autoloading.
All free functions are now in functions.php
2019-06-11 17:05:48 +02:00