[aur-dev] [PATCH 1/3] Move reset key submission to a separate function

2013-03-19 Thread Lukas Fleischer
This allows for reusing reset key submission for other things, such as sending an initial password reset code during account registration. Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- web/html/passreset.php| 22 +- web/lib/acctfuncs.inc.php | 26

[aur-dev] [PATCH 3/3] Enforce e-mail validation during registration

2013-03-19 Thread Lukas Fleischer
Remove the password field from the account creation form and always send a password reset request via e-mail instead. This ensures that only users with valid e-mail addresses are able to login. Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- web/html/account.php | 4

[aur-dev] [PATCH] Add an IP ban list

2013-03-19 Thread Lukas Fleischer
This allows for specifying a list of IP addresses that will no longer be able to register new accounts and login. The list of banned IP addresses can be configured in web/lib/config.inc.php. Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- web/lib/acctfuncs.inc.php| 24

[aur-dev] [PATCH] process_account_form(): Highlight errors

2013-03-19 Thread Lukas Fleischer
Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- web/lib/acctfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index c202f47..61a856b 100644 --- a/web/lib/acctfuncs.inc.php +++

[aur-dev] [PATCH] Save last login IP address

2013-03-19 Thread Lukas Fleischer
Save the IP address used for the last login in the Users table. This makes it a bit easier to create IP ban lists for spammers without looking at web server logs. Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- UPGRADING | 10 ++

Re: [aur-dev] [PATCH] Add an IP ban list

2013-03-19 Thread Lukas Fleischer
On Tue, Mar 19, 2013 at 05:12:23PM -0400, canyonknight wrote: On Tue, Mar 19, 2013 at 9:23 AM, Lukas Fleischer archli...@cryptocrack.de wrote: This allows for specifying a list of IP addresses that will no longer be able to register new accounts and login. The list of banned IP addresses

[aur-dev] [PATCH] Update AUTHORS file

2013-03-19 Thread Lukas Fleischer
* Update maintainer list. * Replace contributor list by a reference to `git shortlog -s`. * Sync introduction and formatting of translators with pacman. Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- AUTHORS | 217 1

[aur-dev] [PATCH] Display user's IP address on their user profile page

2013-03-19 Thread canyonknight
The IP address is only visible to Trusted Users and Developers. Signed-off-by: canyonknight canyonkni...@gmail.com --- web/template/account_details.php | 8 1 file changed, 8 insertions(+) diff --git a/web/template/account_details.php b/web/template/account_details.php index

[aur-dev] [PATCH 1/2] Add Bans table to database schema

2013-03-19 Thread canyonknight
The Bans table creates a DB structure for the ability to ban IP addresses. It takes an IP address converted by ip2long(). It can easily be extended for other features such as time limits (for temporary bans). The table will eventually be able to be populated directly through the web interface by

[aur-dev] [PATCH 2/2] Implement IP banning for user registration and user login

2013-03-19 Thread canyonknight
Adds a new is_ipbanned() function to determine whether the user attempting to login or register for an account has their IP address listed in the Bans table. Signed-off-by: canyonknight canyonkni...@gmail.com --- web/lib/acctfuncs.inc.php | 35 ++- 1 file changed,

Re: [aur-dev] [PATCH 1/2] Add Bans table to database schema

2013-03-19 Thread Dan McGee
On Tue, Mar 19, 2013 at 7:17 PM, canyonknight canyonkni...@gmail.com wrote: The Bans table creates a DB structure for the ability to ban IP addresses. It takes an IP address converted by ip2long(). It can easily be extended for other features such as time limits (for temporary bans). The