[web2py] Re: login to my web2py website with python 3 requests

2021-04-01 Thread 黄祥
same, but use requests.cookie instead e.g. import requests import json import os import random, string from bs4 import BeautifulSoup from requests_toolbelt import MultipartEncoder cookie = requests.cookies.RequestsCookieJar() if os.path.exists('cookies'): cookie.load(ignore_discard=True, ignor

[web2py] Re: login to my web2py website with python 3 requests

2021-03-26 Thread lucas
I found my error. on the lines where I have "response = requests.get(..." and "response = requests.post(...", I should have "response = session.get(..." and "response = session.post(..." so that web2py can set and get the cookie data and the site headers through the session. I am able to logi

[web2py] Re: login validation

2020-08-31 Thread Paco Bernal
Hi, I don't know about an "is_active" field in auth_user table, only regarding Record versioning, but I don't use it. Regards El lunes, 31 de agosto de 2020 a las 13:05:35 UTC+2, and...@gmail.com escribió: > I noted in the manual. But for your opinion what is the meaning about > is_active in

[web2py] Re: login validation

2020-08-31 Thread Andrea Fae'
I noted in the manual. But for your opinion what is the meaning about is_active in auth_user? Why is it useful? Thank you Il giorno lunedì 31 agosto 2020 08:46:15 UTC+2, Paco Bernal ha scritto: > > I meant registration_key :) > > http://web2py.com/books/default/chapter/29/09/access-control?search

[web2py] Re: login validation

2020-08-30 Thread Paco Bernal
I meant registration_key :) http://web2py.com/books/default/chapter/29/09/access-control?search=blocked#Access-Control El lunes, 31 de agosto de 2020 a las 0:08:32 UTC+2, Paco Bernal escribió: > Hi > If you set at anytime key_registration='blocked' in auth_user table that > user will not be able

[web2py] Re: login validation

2020-08-30 Thread Paco Bernal
Hi If you set at anytime key_registration='blocked' in auth_user table that user will not be able to loging. That's the way I would do it Regards El domingo, 30 de agosto de 2020 a las 14:11:08 UTC+2, and...@gmail.com escribió: > Hello, maybe it's easy but I don't know exactly if it's possible

[web2py] Re: login validation

2020-08-30 Thread Clemens
Have a look here: http://web2py.com/books/default/chapter/29/09/access-control#Decorators Should be something like @auth.requires(auth.is_valid==True) On Sunday, August 30, 2020 at 2:11:08 PM UTC+2 and...@gmail.com wrote: > Hello, maybe it's easy but I don't know exactly if it's possible. > I

Re: [web2py] Re: login expiration time

2020-07-28 Thread Warwick JC
Thanks. I appreciate it. On Mon, Jul 27, 2020, 19:22 villas wrote: > It isn't really 'wrong' as such, but it is usually not the best or most > flexible way of displaying your own html content. > > Iframes are normally used to embed and isolate third-party content into > your website, e.g. adver

Re: [web2py] Re: login expiration time

2020-07-27 Thread villas
It isn't really 'wrong' as such, but it is usually not the best or most flexible way of displaying your own html content. Iframes are normally used to embed and isolate third-party content into your website, e.g. advertisements. The iframe allows a method of ceding control of a portion of y

Re: [web2py] Re: login expiration time

2020-07-25 Thread Warwick JC
Actually I got kind of a workaround. In my iframe, a redirect to the login page was distorting the page since the user.html was not resized. So I did this to escape the iframe and go full-page: this.top.location !== this.location && (this.top.location = this.location); On Friday, 24 July 2020

Re: [web2py] Re: login expiration time

2020-07-24 Thread Warwick JC
Thanks. Is it wrong to have iframe pages from the same app? Regards On Fri, 24 Jul 2020 at 15:20, villas wrote: > If you are using an iframe to display a page from the same app, I have > the impression that your design might be wrong. You will probably find a > better way after you give this a

[web2py] Re: login expiration time

2020-07-24 Thread villas
If you are using an iframe to display a page from the same app, I have the impression that your design might be wrong. You will probably find a better way after you give this a little more thought. Sorry if this answer does not seem so helpful. -- Resources: - http://web2py.com - http://web2p

Re: [web2py] Re: login after period of inactivity

2020-05-08 Thread Maurice Waka
I did not have the code for timeout function(wish I could do that) But going back to my error issue, I solved it by: model: auth.settings.login_next = URL('default','user',args='login', extension=False) default/user: auth.messages.ajax_failed_authentication = DIV(H4(T('Your session has expired'))

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Jim Steil
Can you share the code for the user function in default.py? How do you know that the session timed out? Jim On Wed, May 6, 2020, 5:58 PM Maurice Waka wrote: > After clicking the login, that's when the error comes in. > No I haven't set the timer. I left the same time length in default. > Kind

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Maurice Waka
After clicking the login, that's when the error comes in. No I haven't set the timer. I left the same time length in default. Kind regards On Wed, May 6, 2020 at 3:58 PM Jim S wrote: > You said you notice this message after a period of inactivity, but you > also say this message comes up after c

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Jim S
You said you notice this message after a period of inactivity, but you also say this message comes up after clicking login. What is telling you that this is happening after a period of inactivity? I was hoping to see what you have for default/user/load (which you referenced above) - load is no

Re: [web2py] Re: login after period of inactivity

2020-05-05 Thread Maurice Waka
Actually, I want to customize the code to get better feedback, and after digging in I got this discussion I just don't know where to exactly place this code, or get something be

Re: [web2py] Re: login after period of inactivity

2020-05-05 Thread Maurice Waka
I don't know what code I could show since the app is online, but in my routes.py: from fileutils import abspath from languages import read_possible_languages possible_languages = read_possible_languages(abspath('applications', app)) # --

[web2py] Re: login after period of inactivity

2020-05-05 Thread Jim S
Can you show some code? -Jim On Tuesday, May 5, 2020 at 1:38:29 PM UTC-5, Maurice Waka wrote: > > I notice this message after a period of inactivity. See attached. > The problem is that on clicking on the login link on the app on > pythonanywhere, I get an error: invalid view (default/user/load)

[web2py] Re: login with SMTP

2018-10-02 Thread Martin Weissenboeck
I have found the answer myself: auth.settings.alternate_requires_registration = True Am So., 30. Sep. 2018 um 20:16 Uhr schrieb Martin Weissenboeck < mweis...@gmail.com>: > I habe tried to verify the logincredentials using a remote SMTP server. > Works fine! > But I do not want than any new us

[web2py] Re: Login not working on smartphone - no the same menu layout

2018-04-23 Thread Nico de Groot
Maybe the same error (and fix) as in https://groups.google.com/forum/m/?utm_source=digest&utm_medium=email#!topic/web2py/j07rLhwFaqA -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issu

[web2py] Re: Login not working on smartphone - no the same menu layout

2018-04-22 Thread Andrea Fae'
I included tether, and with Chrome I don't see this error Source map error: request failed with status 404 Resource URL: https:// andfae.pythonanywhere.com/tcf/static/css/bootstrap.min.css Source Map URL: bootstrap.min.css.map[Learn More] Did you try with Chrome? I don't have any other error in t

[web2py] Re: Login not working on smartphone - no the same menu layout

2018-04-20 Thread Dave S
On Friday, April 20, 2018 at 11:15:52 AM UTC-7, Andrea Fae' wrote: > > Please help me... > > I'm not going to be much help, but I can confirm that the "hamburger" doesn't appear to have any life, where as the "<" and ">" buttons in the regular part of the page do change the date displayed. Thi

[web2py] Re: Login not working on smartphone - no the same menu layout

2018-04-20 Thread Andrea Fae'
Please help me... Il giorno mercoledì 18 aprile 2018 20:31:38 UTC+2, Andrea Fae' ha scritto: > > this is my application > > https://andfae.pythonanywhere.com/tcf/default/index > > I can't login with android. I don't know. I see in the upper right of the > smartphone 3 lines but when I click nothi

[web2py] Re: login, redirects, and multiple apps

2018-04-03 Thread Dave S
On Wednesday, March 28, 2018 at 9:35:22 AM UTC-7, Massimo Di Pierro wrote: > > This is all very strange since web2py uses different cookie names, session > id, and session folders for different apps. Therefore I do not see how > things can get mixed up. > The only thing I can think of is if som

[web2py] Re: login, redirects, and multiple apps

2018-03-28 Thread Massimo Di Pierro
This is all very strange since web2py uses different cookie names, session id, and session folders for different apps. Therefore I do not see how things can get mixed up. The only thing I can think of is if something in routes is accidentally redirecting form app1 to app2 or vice versa. This wou

[web2py] Re: login strange( or not ) behaviour http/https

2017-09-30 Thread Massimo Di Pierro
This is a basic security requirement to prevent information leakage. https://www.owasp.org/index.php/Session_Management_Cheat_Sheet "Web applications should never switch a given session from HTTP to HTTPS, or viceversa, as this will disclose the session ID in the clear through the network." web2

[web2py] Re: Login 'remember me' not working

2017-08-25 Thread Simona Chovancová
Ah, thank you so much :) On Friday, August 25, 2017 at 1:56:33 PM UTC+2, Anthony wrote: > > That's not what the remember me option is supposed to do -- it does not > automatically fill in the login form if you are logged out. Without the > remember me option checked, a login lasts only as long

[web2py] Re: Login 'remember me' not working

2017-08-25 Thread Anthony
That's not what the remember me option is supposed to do -- it does not automatically fill in the login form if you are logged out. Without the remember me option checked, a login lasts only as long as the browser session -- if you close the browser and then open it again, you will no longer be

[web2py] Re: Login 'remember me' not working

2017-08-24 Thread Simona Chovancová
Apparently some other code I had in controller was breaking functionality of this, now I reached the point when it actually displays the remember button, although upon successful login and log out it doesn't actually remember my info and nothing gets filled into the login form. On Thursday, Au

[web2py] Re: Login 'remember me' not working

2017-08-24 Thread Anthony
> controller.py > def index(): > auth.settings.remember_me_form=True > auth.settings.long_expiration = 3600*24*30 > form = auth() > return dict(form=form) > > view.html > {{=form.custom.begin}} > {{=form.custom.widget.email}} > {{=form.custom.widget.password}} > {{

Re: [web2py] Re: Login page - Menu bar does not work

2017-06-07 Thread Jordan Ladora
Perfect, thank you. On Tue, Jun 6, 2017 at 9:13 PM, Anthony wrote: > Note, this has already been fixed in the master branch, so should be fine > in the next release. > > Anthony > > > On Tuesday, June 6, 2017 at 11:11:26 PM UTC-4, Anthony wrote: >> >> On Tuesday, June 6, 2017 at 4:13:26 PM UTC-4

[web2py] Re: Login page - Menu bar does not work

2017-06-06 Thread Anthony
Note, this has already been fixed in the master branch, so should be fine in the next release. Anthony On Tuesday, June 6, 2017 at 11:11:26 PM UTC-4, Anthony wrote: > > On Tuesday, June 6, 2017 at 4:13:26 PM UTC-4, Jordan Ladora wrote: >> >> I notice the same problem. >> >> Using firefox, the j

[web2py] Re: Login page - Menu bar does not work

2017-06-06 Thread Anthony
On Tuesday, June 6, 2017 at 4:13:26 PM UTC-4, Jordan Ladora wrote: > > I notice the same problem. > > Using firefox, the js console reveals that web2py-bootstrap3.js is trying > to call the function "web2py.validate_entropy", which is in web2py.js, but > cannot find it. > web2py.validate_entrop

[web2py] Re: Login page - Menu bar does not work

2017-06-06 Thread Jordan Ladora
I notice the same problem. Using firefox, the js console reveals that web2py-bootstrap3.js is trying to call the function "web2py.validate_entropy", which is in web2py.js, but cannot find it. The error is: * ReferenceError: web2py is not defined. * (line 14, posn 7 of web2py-bootstrap3.js).

[web2py] Re: Login(auth) from Oracle db

2017-06-01 Thread Dave S
On Thursday, June 1, 2017 at 7:44:48 PM UTC-7, Вячеслав Анатольевич wrote: > > Hi! > Can anybody help me? I am only starting on web2py. > So, i have db oracle with alredy having data, and i want to make login > only, without reg/change pass and other. > I have a table in db for example, user_psw

[web2py] Re: login form

2017-03-30 Thread Dave S
To expand on Anthony's reference, I'd start at the beginning of the book with http://web2py.com/books/default/chapter/29/03/overview#Adding-authentication> for a very simple example. On Thursday, March 30, 2017 at 12:55:56 PM UTC-7, Happy Rob wrote: > > This is a quick one here, It's (extremely)

[web2py] Re: login form

2017-03-30 Thread Happy Rob
This is a quick one here, It's (extremely) ugly and basic, but should give you a framework to figure out from. I did it on pythonanywhere for free which is pretty cool. The template below should work on local or others though. No email out or $ because the pythonanywhere free version doesn't all

[web2py] Re: login form

2017-03-30 Thread Anthony
On Thursday, March 30, 2017 at 8:32:00 AM UTC-4, karimhayda...@gmail.com wrote: > > hello > i am new in web2py and also in MVC framework. > i want to build a simple login form (username+password) > > How to build a form + data base?? > You should start by reading the documentation

Re: [web2py] Re: Login - message "invalid email" - on mobil

2016-10-31 Thread Richard Vézina
Don't Beat Massimo, we need him... :D Richard On Sat, Oct 29, 2016 at 10:34 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > thanks for reporting back! > > > On Tuesday, 25 October 2016 07:29:59 UTC-5, Beat Kohler wrote: >> >> Hi Massimo >> sorry for the late response. I found the e

[web2py] Re: Login - message "invalid email" - on mobil

2016-10-29 Thread Massimo Di Pierro
thanks for reporting back! On Tuesday, 25 October 2016 07:29:59 UTC-5, Beat Kohler wrote: > > Hi Massimo > sorry for the late response. I found the error. It's the smartphone ... > not me :-) > As usual the smartphone will propose the email address when I start to > type and as usual I take it.

[web2py] Re: Login - message "invalid email" - on mobil

2016-10-25 Thread Beat Kohler
Hi Massimo sorry for the late response. I found the error. It's the smartphone ... not me :-) As usual the smartphone will propose the email address when I start to type and as usual I take it. But, I don't know why, at the end of the address is a space. Looks like the login procedure not accep

[web2py] Re: Login - message "invalid email" - on mobil

2016-10-21 Thread Massimo Di Pierro
I have no idea. I do not see why login would be different from a smartphone. I use it all the time and it works fine. Perhaps capitalization of the email? On Wednesday, 19 October 2016 07:07:24 UTC-5, Beat Kohler wrote: > > Hi Massimo > Thanks for your response. But I not understand your answer

[web2py] Re: Login - message "invalid email" - on mobil

2016-10-19 Thread Beat Kohler
Hi Massimo Thanks for your response. But I not understand your answer. Perhaps my question was not clear. Login with the email address works fine on a desktop. Same URL - same login procedure on a smartphone I get the message "invalid email" and this as mentioned on an pythomanywhere publish

[web2py] Re: Login - message "invalid email" - on mobil

2016-10-11 Thread Massimo Di Pierro
python anywhere does not have a mailman server. It does not send emails. If you have a paid account you can make outgoing connection and in this case I would connect web2py to sparkpost.com. On Tuesday, 11 October 2016 20:55:33 UTC-5, Beat Kohler wrote: > > > Hi guys > I published a POC app on

[web2py] Re: Login page - Menu bar does not work

2016-09-23 Thread Anthony
On Wednesday, September 21, 2016 at 7:18:11 PM UTC-4, SR wrote: > > When I am in the Login page, the menu items does not work. > Any idea why it is not working? > Not clear how we could know without providing any details at all regarding your code, the exact behavior, and the steps to reproduce t

[web2py] Re: Login page - Menu bar does not work

2016-09-22 Thread SR
I would really appreciate if you could be more specific? On Wednesday, September 21, 2016 at 6:18:11 PM UTC-5, SR wrote: > > When I am in the Login page, the menu items does not work. > Any idea why it is not working? > Thanks. > > -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Re: Login through modal

2016-06-28 Thread Ron Chatterjee
Yes. This worked. def main_page(): main_pg=DIV('') form = auth.login() dialog = modal_wrapper(form, _id='cont_id', header='Header', footer='footer') main_pg.append(dialog) return dict(main_pg = main_pg) def modal_wrapper(content, _id, header='', footer=''): main_wrap =

[web2py] Re: Login through modal

2016-06-28 Thread pbreit
You should be able to put the Web2py login form on a modal using something like: def mylogin(): return dict(form=auth.login()) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

Re: [web2py] Re: login by ajax

2016-05-04 Thread Val K
Hi! It seems, that ajax_login isn't exist yet? if not user: self.log_event(self.messages['login_failed_log'], request.post_vars) # invalid login session.flash = self.messages.invalid_log

[web2py] Re: Login App engine

2016-02-03 Thread Charles tenorio
is ok now I changed line code! thanks for helpe Field('user_id', 'reference auth_user', default=auth.user_id) Field('user_id', 'reference auth_user', default=auth.user_id, readable=True, writable=False) Em terça-feira, 26 de janeiro de 2016 15:50:34 UTC-3, Charles tenorio escreveu: > > goo

[web2py] Re: Login App engine

2016-02-03 Thread Charles tenorio
Hi Niphlod! work out what you said, thank you. I can now registers the USERS and login. can join us who the Registered User who did the operation. it all running app engine locally. But when I go up, I can only make the register of usr. Of this error in time to call the function that is to to

[web2py] Re: Login App engine

2016-01-30 Thread Niphlod
uhm, strange. do you have in models this line session.connect(request, response, db=db) which is required by GAE, since it has no R/W fileystem whatsoever ? On Friday, January 29, 2016 at 10:40:40 PM UTC+1, Charles tenorio wrote: > > cool it was the *tbl(tbl auth_event, aut_group, auth_membershi

[web2py] Re: Login App engine

2016-01-29 Thread Charles tenorio
cool it was the *tbl(tbl auth_event, aut_group, auth_membership, auth_user)* tbl were created but were not created (auth_cas, auth_permission) ? when I try to log of this error Traceback (most recent call last): File "/base/data/home/apps/s~jogosweb-1188/1.390332252053968354/gluon/main.py",

[web2py] Re: Login App engine

2016-01-28 Thread Massimo Di Pierro
That is the example. You should add those lines after auth is defined in models. That should be all. What problem do you experince? On Wednesday, 27 January 2016 17:24:00 UTC-6, Charles tenorio wrote: > > I do not know that. After I read your message, I tried to use but can not. > you can pass a

[web2py] Re: Login App engine

2016-01-27 Thread Charles tenorio
I do not know that. After I read your message, I tried to use but can not. you can pass an example? thank you Em terça-feira, 26 de janeiro de 2016 15:50:34 UTC-3, Charles tenorio escreveu: > > good afternoon I need your help in the app engine can not use part of the > web2py login when I call

[web2py] Re: Login App engine

2016-01-27 Thread Massimo Di Pierro
Are you using this? from gluon.contrib.login_methods.gae_google_account import GaeGoogleAccount auth.settings.login_form=GaeGoogleAccount() On Tuesday, 26 January 2016 12:50:34 UTC-6, Charles tenorio wrote: > > g

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Leonel Câmara
migrate=True Tells the DAL to save the table definitions in the .table files and by comparing with the previous definitions perform migrations as necessary (for instance create missing columns or delete old ones no long used) fake_migrate=True Tells it not to really migrate so we will just re

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Gael Princivalle
This app is in production. What's the function of migrate? I've tried this: db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'], fake_migrate_all=True, migrate=True) And I don't have any .table file. What's the function of .table files? Is it a problem don't having these files

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Leonel Câmara
migrate=True and fake_migrate=True will make them be recreated. Then you can set fake_migrate=False and probably you will want to set migrate to False if this is in production until such a time as you change the tables. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Gael Princivalle
Yes that's an important information. .table files not part of the database. I've done that: Cancel all .table files db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'],fake_migrate_all=True) And now it works like a charm. I've cancel fake_migrate_all=True and it's ok. Thanks aga

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Leonel Câmara
Notice that, this isn't a problem with your database table. Files with .table extension in the databases folder are web2py's bookkeeping for migrations. If you didn't do any changes to the database you can just delete them and tell web2py to make them again with a fake migration. -- Resources:

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Leonel Câmara
Probably you don't load that table on the management interface. -- 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

[web2py] Re: Login error - Table corrupted

2015-03-19 Thread Gael Princivalle
Thank you Leonel. But the problem seems more strange. In fact if I try to login for www.mydomainapp.com I've got this error. If I run the same application from the administration interface, I can login. Do you have an idea of what could be the problem? Il giorno mercoledì 18 marzo 2015 17:31:22

[web2py] Re: Login error - Table corrupted

2015-03-18 Thread Leonel Câmara
Remove the .table files and do a fake migration to recreate them. -- 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 ar

[web2py] Re: login and request.vars_next

2015-02-10 Thread Annet
Hi Anthony, Thanks for your reply. Why don't you just change the original link to > > onclick="javascript:openwindow('/myleonexus/grouphandler/connect')" > > and let the app handle redirecting to login and back if necessary? > Because I am tired :-( and now feel embarrassed asking such a stu

[web2py] Re: login and request.vars_next

2015-02-10 Thread Anthony
Why don't you just change the original link to onclick="javascript:openwindow('/myleonexus/grouphandler/connect')" and let the app handle redirecting to login and back if necessary? Anthony On Tuesday, February 10, 2015 at 5:03:30 AM UTC-5, Annet wrote: > > In the init application I defined th

[web2py] Re: Login Button off the layout

2015-01-16 Thread Omi Chiba
The login page which newly created in this version looks fine so Maybe there are CSS change which affects the layout of previous app... On Friday, January 16, 2015 at 1:42:11 PM UTC-6, Omi Chiba wrote: > > I installed the latest web2py Version 2.9.11 after long time absence from > this project a

Re: [web2py] Re: Login to web2py from external script

2015-01-14 Thread Niphlod
On Wednesday, January 14, 2015 at 1:27:59 AM UTC+1, Richard Penman wrote: > > > http is stateless > > do you mean because the decoding is handled at the server layer before > reaches web2py? > > I mean that web2py doesn't store anywhere how to send the data in. As long as it's valid, it's par

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Richard Baron Penman
> http is stateless do you mean because the decoding is handled at the server layer before reaches web2py? On Tue, Jan 13, 2015 at 6:04 PM, Niphlod wrote: > http is stateless. > > > On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: >> >> Yeah same data of course, but differ

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Jim S
Is there a 'how-to' anywhere that shows how to do this? I'd really like to see this as a topic in Chapter 14: Other Recipes in the book. Is it somewhere else where I've missed it? -Jim On Tuesday, January 13, 2015 at 9:30:54 AM UTC-6, Richard Penman wrote: > > and web2py is not > > On Tue,

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Richard Baron Penman
and web2py is not On Tue, Jan 13, 2015 at 6:04 PM, Niphlod wrote: > http is stateless. > > > On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: >> >> Yeah same data of course, but different encoding than form specifies so I >> expected back end to reject it. >> >> why it shou

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Niphlod
http is stateless. On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: > > Yeah same data of course, but different encoding than form specifies so I > expected back end to reject it. > why it shouldn't be ? it's just different encodings to send the same > data over the wire

Re: [web2py] Re: Login to web2py from external script

2015-01-12 Thread Richard Baron Penman
Yeah same data of course, but different encoding than form specifies so I expected back end to reject it. why it shouldn't be ? it's just different encodings to send the same data over the wire. On Monday, January 12, 2015 at 3:36:12 AM UTC+1, Richard Penman wrote: > > Strangely I found that the

[web2py] Re: Login to web2py from external script

2015-01-12 Thread Niphlod
why it shouldn't be ? it's just different encodings to send the same data over the wire. On Monday, January 12, 2015 at 3:36:12 AM UTC+1, Richard Penman wrote: > > Strangely I found that the login forms works even when encode the data as > usual for application/x-www-form-urlencoded: > > cj = co

[web2py] Re: Login to web2py from external script

2015-01-11 Thread Richard Penman
Strangely I found that the login forms works even when encode the data as usual for application/x-www-form-urlencoded: cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) html = opener.open(login_url).read() formkey = xpath.get(html, '//input[@name="_formkey

[web2py] Re: login security and some doubts

2014-10-04 Thread harith54
Thank you so much. Its so reassuring. Pythonanywhere doesn't allow code to connect to outside url in the case of free account. I tested it in a paid account and web2py was able to connect to zoho smtp mail. I have shown web2py to my friends and some couldn't believe it was that easy to build a

[web2py] Re: login security and some doubts

2014-10-03 Thread Massimo Di Pierro
> > 1. In the db.py file, I filled email and smtp mail settings and enabled > 'require email confirmation for registration', but it says connection > refused when trying to register a user account. Is that because I am on > pythonanywhere free account OR did I miss some other configuration sett

[web2py] Re: Login restricted based on subscription

2014-08-13 Thread Rufus
On Tuesday, August 12, 2014 4:28:11 PM UTC-4, Kenneth wrote: > > Hello everyone, > > I'm building a site that clients subscribes to so I need to limit their > login based on the subscription. Is there a built in feature to limit login > to a date range? > > > Kenneth > > Can't your successful log

[web2py] Re: Login restricted based on subscription

2014-08-12 Thread Dave S
On Tuesday, August 12, 2014 1:28:11 PM UTC-7, Kenneth wrote: > > Hello everyone, > > I'm building a site that clients subscribes to so I need to limit their > login based on the subscription. Is there a built in feature to limit login > to a date range? > > > I would use the scheduler to run s

[web2py] Re: Login drop down in appadmin while logged in into admin

2014-07-08 Thread Annet
Thank you both for your reply. The difference between admin and appadmin, wasn't clear to me but now it is. Regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

[web2py] Re: Login drop down in appadmin while logged in into admin

2014-07-07 Thread Anthony
There are two ways to access appadmin: > > - begin logged into admin and "system administrator". this the usual way. > You get access to appadmin for all the apps. > - begin logged into a specific app and having special privileges: > > http://web2py.com/books/default/chapter/29/09/access-control?s

[web2py] Re: Login drop down in appadmin while logged in into admin

2014-07-07 Thread Massimo Di Pierro
There are two logins: 1) login into admin which gives you access to appadmin as well 2) login into your application. appadmin is part of your application and shows you whether you are logged into the application There are two ways to access appadmin: - begin logged into admin and "system administ

[web2py] Re: Login ajax component

2014-04-21 Thread Louis Amon
I found a workaround to solve this issue by closing the form tag myself : I removed the line : > {{ =login_form.custom.end }} And replaced it with : > > It IS a monkeypatch, and it comes with restrictions (regarding components for instance) but at least my problem is solved for now. On

[web2py] Re: Login form adittional fields

2014-03-22 Thread xgp . latino
Hi Leonel, I need to authenticate 3 fields instead if usual 2. Because i need to used identification number and type of identification document and the usual password to login. Gonna try login_bare. Thanks. El viernes, 21 de marzo de 2014 22:51:21 UTC-5, Leonel Câmara escribió: > > I don't g

[web2py] Re: Login form adittional fields

2014-03-21 Thread Leonel Câmara
I don't get it why do you need 3 fields? Anyway you could just add the field to your custom form. Then instead of using auth.login(), get the user for the id/email/whatever you're using and then login with login_bare. -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] Re: Login form on index page

2013-12-27 Thread Massimo Di Pierro
You can insert def index(): form = auth.login() if auth.user: message="welcome %s" % auth.user.first_name else: message = 'login please' return dict(form=form, message=message) and in view: ... {{=form}} {{=message}} ... On Thursday, 26 December 2013 13:39:07 UTC-6, Unnikrishnan P

[web2py] Re: login crash under 2.8.2

2013-12-24 Thread lucas
ok LightDot, just to confirm the tweak i should do for the sake of stability. you are saying that under each VirtualHost i should have a separate WSGIDaemonProcess under it. or, i should remove the WSGIDaemonProcess from the wsgi.conf file and place it under each domains VirtualHost section.

[web2py] Re: login crash under 2.8.2

2013-12-24 Thread LightDot
Ok, so you're using one mod_wsgi / web2py instance and map virtualhosts into specific apps within. Looks like a neat solution, but it seems to be problematic in the same way Leonel is describing for the Windows environment. Basically, different virtualhosts under the same WSGIDaemonProcess have

[web2py] Re: login crash under 2.8.2

2013-12-24 Thread lucas
ok, so centos 6x is the way to go for the most stable, reliable, etc., in excellence of computing? that is what you are saying, because i really love centos and have been using it for years. but i have been doubting my httpd.conf setups for a while because all of those settings and then add in

[web2py] Re: login crash under 2.8.2

2013-12-23 Thread LightDot
Apache and mod_wsgi under CentOS 6.x (or any other RHEL derivative, like Scientific Linux) tick like a clock. We us this combo for web2py almost everywhere. Are you using mod_wsgi as a deamon? Have you set up different process groups, users etc. for different virtual hosts? You could post the r

[web2py] Re: login crash under 2.8.2

2013-12-23 Thread lucas
oh yeah, i forgot to mention. i am running multiple domain names and i am using VirtualHost under apache to redirect to the proper web2py application. could that be the problem? i am using the session as files, i like that better then the DB option because, well, i just like it because it is

[web2py] Re: login crash under 2.8.2

2013-12-23 Thread Leonel Câmara
No it's not wrong to use apache and wsgi, although there are better options if you use Linux, in my experience there's only a problem if you're running it on ms windows and you have more than one web2py instance as they share the same embedded mod_wsgi. -- Resources: - http://web2py.com - http

[web2py] Re: login crash under 2.8.2

2013-12-23 Thread lucas
sorry i dropped off the map for a while. my server had a hard hardware crash and i have been managing its replacement. i think the processor or motherboard went bad because the memory and HD are testing out ok. i actually decided to goto amazon's EC2 and i am using centos 6,4 under that. it

[web2py] Re: login crash under 2.8.2

2013-12-19 Thread Leonel Câmara
My suspicion right now is that this bug is indeed caused by mod_wsgi, and it's not even solvable in windows where you don't have WSGIDaemonProcess, so that's why restarting apache temporarily solves the problem, what I'm going to do is migrate the server to Linux (including migrating the only p

[web2py] Re: login crash under 2.8.2

2013-12-18 Thread Leonel Câmara
On my tests, this is happening after I go to the admin for other applications on the same server, so it's possible that admin is the one causing the problem. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: login crash under 2.8.2

2013-12-18 Thread Leonel Câmara
I don't think I can send you the file as this crash happens precisely when it's trying to store the cookie and response.session_id is None. I have no idea how thread.lock objects are getting into the session. I have tried to solve this myself, but the code for Session is not exactly easy to

[web2py] Re: login crash under 2.8.2

2013-12-17 Thread Massimo Di Pierro
t would help a lot to know what the session object looks like so that we can try reproduce the problem. I assume this is for a particular session object. Can you retrieve the session_id from the cookie and send me the corresponding file? Do you know how the lock object gets into the session? I

Re: [web2py] Re: login crash under 2.8.2

2013-12-17 Thread Massimo Di Pierro
I do not fully understand the details but there is a note in the pyhton docs that says that __getstate__ can return False. If it does __setstate__ is not called. If I change __getstate__ to return dict(self) or if I remove it, sessions break. On Tuesday, 3 December 2013 13:50:33 UTC-6, Jonathan

[web2py] Re: login crash under 2.8.2

2013-12-17 Thread Leonel Câmara
I'm still getting another problem if I store cookies in files as usual: Traceback (most recent call last): File "C:\blueweb2py\gluon\main.py", line 479, in wsgibase session._try_store_in_cookie_or_file(request, response) File "C:\blueweb2py\gluon\globals.py", line 1089, in _try_store_in_c

  1   2   3   >