Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ideas About New Functions #204

Open
REJack opened this issue Nov 16, 2017 · 2 comments
Open

Ideas About New Functions #204

REJack opened this issue Nov 16, 2017 · 2 comments

Comments

@REJack
Copy link
Collaborator

REJack commented Nov 16, 2017

Hey dear Aauth Community,

I am working on some projects at the moment and I am trying to figure out how to accomplish new functions like account expiry or group variables like max upload size or max posts per day, this would be differnt per group.

My Plans:

ACCOUNT_EXPIRY:

  • option for determine first time
    • created_date OR first_login_date
  • option for X days = 1 month for expand expiry

GROUP_VARIABLES:

  • database table & functions like user_variables

My Mental Hurdles 😁:

ACCOUNT_EXPIRY:

  • how to determine default expiry_time for groups?
  • how/where to store first date?
    • users_expiry table
    • column in user table
    • system user_var
  • how to expand expiry_time * X months
    • where should I save the next expiry_date?

What you think about this?

P.S.: I'm still working on Aauth v3.0.0, I am stuck a bit on the user creation/update tests (i want 100% test coverage with all options xD) but I am commit soon the library with all user related functions without get_user_groups, is_allowed & etc.

@oniricosistemas
Copy link

Do not have group by default.
I made the following modification in the code:
/config/aauth.php

$config_aauth["default"] = array(
	'no_permission'                  => 'error',

	'admin_group'                    => 'admin',
	'default_group'                  => '',
	'public_group'                   => 'public',

Class method create_user:

// set default group
if(!empty($this->config_vars['default_group'])){
     $this->add_member($user_id, $this->config_vars['default_group']);
}

Sorry my english.
Regards Lucas

@emreakay
Copy link
Owner

Hi, its very cool idea,
I am also planning to add subcsriptions feature to Aauth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants