Commit Graph

9 Commits

Author SHA1 Message Date
54efb095fe style: run php-cs-fixer 2021-05-20 20:37:35 -03:00
7637400ec7 Bug Fixing - forgot to add the use App\FlashMessage on AlertController 2018-10-21 13:13:09 -03:00
e22f49bc6a Avoiding issues and refactoring code
I made the code more passive, avoiding issued at taking, returning,
storing alerts or removing alerts from an item.

Now they all check if it is with you before returning/deleting
alert etc. I am not sure if all cases are covered, but they are
better than before. I had one only issued on this on that time,
but I prefer to prioritize safety/security.

I took the opportunitie to move some code from Controllers to
the model itself, as they were changing with the DB.
2018-10-21 13:09:06 -03:00
1f9da456a5 Bug Fixed: avoiding item waiting_user across take/return
It happend once: a user asked to be added to the waiting
list at the same time other user was returning the item.

So the user ended up waiting for the user he was already
using.
2018-10-21 11:57:23 -03:00
1c1c42df7b Refactoring
Including some use for classes;
REfactoring the HomeController, to make it cleaner
and avoid repeating code.
2018-10-10 00:46:28 -03:00
675200303a Added: language to User profile (DB)
The language were set only on session. But now it is
stored with user profile, on DB.

It is important as now I can send alert e-mails to each
user on their own languages and not the activer
user language.

Also, wherever the user logs out and logs in again,
it will see the same site locale.
2018-10-02 23:53:35 -03:00
4ef87f411d Including authenticaed user on models: Items, Product and User 2018-09-19 15:00:49 -03:00
d407e5d109 Included: alert the active user someone is waiting for the item 2018-09-15 02:33:21 -03:00
a173e3923a Including Alert me! 2018-09-15 02:09:07 -03:00