You have four options: - Use auth.get_or_create_user() - Use auth.register_bare() (which calls get_or_create_user) - Just create a SQLFORM based on the db.auth_user table and insert a record. - Use /appadmin/manage/auth, as described here: https://groups.google.com/d/msg/web2py/HdvSyZCJad4/5y1xQw3D2RgJ
Anthony On Sunday, April 9, 2017 at 6:01:55 PM UTC-4, Alfonso Serra wrote: > > form = auth.register() doesnt have in mind private sites like business > dashboards where an admin would be able to register new users. Its only > posible to register users when theres not a user logged in. tools.py line > 3267: > > def register(self, > next=DEFAULT, > onvalidation=DEFAULT, > onaccept=DEFAULT, > log=DEFAULT, > ): > """ > Returns a registration form > """ > > table_user = self.table_user() > request = current.request > response = current.response > session = current.session > if self.is_logged_in(): > redirect(self.settings.logged_url, > client_side=self.settings.client_side) > > Im aware public sites are the most common cases. For now ill comment the > lines but i wish there were a way without having to reimplement the > register function. Is it posible to improve it so i can make use of this > feature? > > Thanks. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

