Re: Unable to send activation email. user authentication

2024-09-07 Thread Asoma Samuel
Thank you Ryan. I will provide feedback on this solution On Saturday, September 7, 2024 at 5:45:59 PM UTC+4 Ryan Nowakowski wrote: > > > On September 5, 2024 9:06:38 PM CDT, Asoma Samuel > wrote: > > >I’ve overridden socket.getfqdn to return a specific local hostname in my > >Django settings,

Unable to send activation email. user authentication

2024-09-06 Thread Asoma Samuel
development server, and I’m also unable to send emails from within the Django shell. Additionally, we are experiencing issues with email delivery related to user authentication with Djoser and JWT. Problem Description I’ve overridden socket.getfqdn to return a specific local hostname in my Django

Re: User authentication with simple-jwt drf

2022-08-31 Thread Mobina J
ption as e: messages.error(request, e) context = { 'form': form, 'value': demo } return render(request, 'index.html', context) else: context = {'form': form} return render(request, 'index.html', context) this is my code...I want to show failed mail to the

User authentication with simple-jwt drf

2022-08-24 Thread Lakshyaraj Dash
Hello everyone, I want to create a user authentication app using ReactJS and django. But facing problems in authenticating with the jsonwebtokens in ReactJS. Can anybody provide correct guide of implementing DjangoRestFramework simple-jwt and ReactJS jet ? -- You received this message because

Re: plz help user authentication

2022-08-24 Thread Wazed Khan
Use the relationship in this way Product -> Seller-> User Instead Product -> User -> Seller On Wed, Aug 24, 2022, 7:18 PM MAHESH KUMAR wrote: > > 1. User Authentication APIs: > 1. get or create user by phone number, params: “phone_no”, response > {“user_id”,”auth_

Re: plz help user authentication

2022-08-24 Thread MAHESH KUMAR
1. User Authentication APIs: 1. get or create user by phone number, params: “phone_no”, response {“user_id”,”auth_token”}, 2. get or create user by email, params: “email”, response {“user_id”,”auth_token”}, how to write this i was try but i didn't get plz help sir On Friday, Augu

Re: Django User authentication OR Custom Model For the Situation

2020-11-23 Thread Neeraj Rana
Thank you for your response, I really appreciate this hope this helps me. On Mon, 23 Nov, 2020, 7:36 pm mike vickers, wrote: > > https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html > > This is a nice reference that goes over the pros/cons of the differe

Re: Django User authentication OR Custom Model For the Situation

2020-11-23 Thread mike vickers
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html This is a nice reference that goes over the pros/cons of the different approaches to your problem. On Mon, 23 Nov 2020 at 08:41, Neeraj Rana wrote: > I am trying to create two different types of users

Django User authentication OR Custom Model For the Situation

2020-11-23 Thread Neeraj Rana
I am trying to create two different types of users, prime and one prime with that it also consist of email verification and custom username. Now, my question is should I use the user auth model, and django.forms and extend the form for email, phone no or should i build a completely new model and

New User Authentication Guide (:

2019-08-06 Thread Aaron Harris
Hi all, pretty excited about our new guide to Django User authentication on the Kite Blog <http://kite.com>. Nice to have a reference if authentication maybe isn't your *favorite* part of webdev. https://kite.com/blog/python/django-authentication/ -- You received this message beca

user authentication

2019-02-27 Thread lingaiahdanda
hello django's i am having an error while doing user authentication plz have a look and respond asap -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Feb 12, 2014 at 4:02 PM, Ethan Lowry wrote: > Hi Cal, first off thanks for the detailed response. > > Regarding your second reply I'm not sure I understand the question? The > csrf issue I described *is* the reason I was unable to use POST requests, > which is what I originally wanted to

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Ethan Lowry
Hi Cal, first off thanks for the detailed response. Regarding your second reply I'm not sure I understand the question? The csrf issue I described *is* the reason I was unable to use POST requests, which is what I originally wanted to do. I will look in to all the options in the links posted an

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Feb 12, 2014 at 3:17 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Ethan, comments in-line; > > > On Wed, Feb 12, 2014 at 1:41 PM, Ethan Lowry wrote: > >> Hi there, >> >> I have a bare-bones Django app set up and am planning on using the built

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi Ethan, comments in-line; On Wed, Feb 12, 2014 at 1:41 PM, Ethan Lowry wrote: > Hi there, > > I have a bare-bones Django app set up and am planning on using the built > in Django user auth to manage log in and registration via the Android app > I'm developing. > > I've tried this a number of

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Thomas Leo
>> Obviously this isn't an ideal or secure way of doing things and what I originally tried was sending a POST request, but this gets denied with a 403 and a message about not having a CSRF cookie attached. I haven't developed anything with Android but it sounds like you need to send a CSRF in y

Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Ethan Lowry
Hi there, I have a bare-bones Django app set up and am planning on using the built in Django user auth to manage log in and registration via the Android app I'm developing. I've tried this a number of ways and can, for example, log in by sending a GET request such as ([url]/login?username=[us

Re: Questions about how Django handles user authentication.

2014-01-20 Thread Daniel Roseman
On Monday, 20 January 2014 05:35:40 UTC, Chen Xu wrote: > > Hi Everyone, > I am wondering how request.User get set during the authentication, do we > have to do anything like: > > request.User = User() or it will have value by itself? > > > Thanks in advance. > -- > ⚡ Chen Xu ⚡ > Did you try

Re: Questions about how Django handles user authentication.

2014-01-20 Thread Avraham Serour
on your view the request object will be populated already, it is meant for read only, including the user object so you could check for example if the current user is authenticated using the request.user object good luck On Mon, Jan 20, 2014 at 7:35 AM, Chen Xu wrote: > Hi Everyone, > I am wond

Questions about how Django handles user authentication.

2014-01-19 Thread Chen Xu
Hi Everyone, I am wondering how request.User get set during the authentication, do we have to do anything like: request.User = User() or it will have value by itself? Thanks in advance. -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django us

Sqlalchemy in Django with User Authentication Problem

2014-01-16 Thread Chen Xu
Hi Everyone, I am using sqlalchemy instead of Django's ORM for my new website, and I am running into the incompatible user authentication issue, I am wondering if there are any good python authentication library that allows both facebook, google, twitter,etc login and its own email registr

Re: Issue in User authentication

2013-07-06 Thread vijay shanker
On Thursday, July 4, 2013 11:30:06 PM UTC+5:30, vijay shanker wrote: > > *Hi* > *I am using django 1.5 and created my own user model by AUTH_USER_MODEL= > 'account.User' in settings.* > > *my user model is like this:* > > from django.db import models > from django.contrib.auth.models import Abst

Issue in User authentication

2013-07-04 Thread vijay shanker
*Hi* *I am using django 1.5 and created my own user model by AUTH_USER_MODEL= 'account.User' in settings.* *my user model is like this:* from django.db import models from django.contrib.auth.models import AbstractBaseUser, UserManager, PermissionsMixin # Create your models here. GENDER = (

Re: user authentication with extended (AbstractUser) user model

2013-06-20 Thread Evan Stone
Thanks for opening the ticket and thanks so much for the explanation as well! -evan On Wednesday, June 19, 2013 7:13:04 PM UTC-5, Russell Keith-Magee wrote: > > > On Thu, Jun 20, 2013 at 4:16 AM, Evan Stone > > wrote: > >> Sure thing. Here are the snippets that gave me pause: >> >> "Think ca

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Russell Keith-Magee
On Thu, Jun 20, 2013 at 4:16 AM, Evan Stone wrote: > Sure thing. Here are the snippets that gave me pause: > > "Think carefully before handling information not directly related to > authentication in your custom User Model. > > It may be better to store app-specific user information in a model th

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Evan Stone
Also, thank you again! On Wednesday, June 19, 2013 3:16:05 PM UTC-5, Evan Stone wrote: > > Sure thing. Here are the snippets that gave me pause: > > "Think carefully before handling information not directly related to > authentication in your custom User Model. > > It may be better to store app-s

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Evan Stone
Sure thing. Here are the snippets that gave me pause: "Think carefully before handling information not directly related to authentication in your custom User Model. It may be better to store app-specific user information in a model that has a relation with the User model. That allows each app t

Re: user authentication with extended (AbstractUser) user model

2013-06-18 Thread Russell Keith-Magee
On Tue, Jun 18, 2013 at 11:37 PM, Evan Stone wrote: > Russ, > > Thanks so much for getting back to me! I shouldn't have posted that > without my code in front of me... (was posting from my phone, in bed) > > It turns out that I did NOT have AUTH_USER_MODEL set. I had > AUTH_PROFILE_MODULE set. >

Re: user authentication with extended (AbstractUser) user model

2013-06-18 Thread Evan Stone
Russ, Thanks so much for getting back to me! I shouldn't have posted that without my code in front of me... (was posting from my phone, in bed) It turns out that I did NOT have AUTH_USER_MODEL set. I had AUTH_PROFILE_MODULE set. I changed it to AUTH_USER_MODEL and followed the custom user mo

Re: user authentication with extended (AbstractUser) user model

2013-06-17 Thread Russell Keith-Magee
On Mon, Jun 17, 2013 at 10:31 PM, Evan Stone wrote: > Per the docs for Django 1.5, I have attempted to broaden the range of data > held in the default user model by making an extended user model with the > AbstractUser class. I made the model (called "Client") and listed it in > settings.py as th

user authentication with extended (AbstractUser) user model

2013-06-17 Thread Evan Stone
Per the docs for Django 1.5, I have attempted to broaden the range of data held in the default user model by making an extended user model with the AbstractUser class. I made the model (called "Client") and listed it in settings.py as the AUTH_USER_MODEL. Syncdb took it and it worked great. Spe

Re: User authentication with either username or email.

2013-06-15 Thread shashank sandela
This helped alot and solved the issue. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, s

Re: User authentication with either username or email.

2013-06-14 Thread Tom Evans
On Fri, Jun 14, 2013 at 3:29 PM, shashank sandela wrote: > As you can see in the views.py I did import the class > EmailOrUsernameModelBackend. OK. But you mustn't import that class, you must allow django to import it itself, and then django will use it when authenticating users. You do this by

Re: User authentication with either username or email.

2013-06-14 Thread shashank sandela
Sorry. The error was: AttributeError at /authentication/ 'User' object has no attribute 'backend' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users

Re: User authentication with either username or email.

2013-06-14 Thread shashank sandela
As you can see in the views.py I did import the class * EmailOrUsernameModelBackend.* * * Now when I used " *user = EmailOrUsernameModelBackend().authenticate(username=username, password=password) *" It gave an error saying: AttributeError at /tangle/auth/ 'User' object has no attribute 'backen

Re: User authentication with either username or email.

2013-06-14 Thread Enyert Viñas
El 14/06/2013 07:26 a.m., shashank sandela escribió: unbound method authenticate() must be called with EmailOrUsernameModelBackend instance as first argument (got nothing instead) Hi. Remember that you must import a function before you call it. This is a reference to authentication in Django h

Re: User authentication with either username or email.

2013-06-14 Thread Tom Evans
On Fri, Jun 14, 2013 at 12:56 PM, shashank sandela wrote: > Hi, > > I created a backends.py in my project folder. > > backends.py :: > > from django.conf import settings > from django.contrib.auth.models import User > > class EmailOrUsernameModelBackend(object): > def authenticate(self, userna

User authentication with either username or email.

2013-06-14 Thread shashank sandela
Hi, I created a backends.py in my project folder. backends.py :: *from django.conf import settings* *from django.contrib.auth.models import User* * * *class EmailOrUsernameModelBackend(object):* *def authenticate(self, username=None, password=None):* *if '@' in username:* *

Re: CBVs and using existing forms for user authentication etc

2013-05-31 Thread Jonas Geiregat
On 31 May 2013, at 12:36, tony gair wrote: > > I'm trying to write my first django app using cbv's and good practice ala 2 > scoops! > > (thanks for all the help so far in this forum btw!) > > I have constructed the app using django braces and CBV's and have noticed > that I can only authent

CBVs and using existing forms for user authentication etc

2013-05-31 Thread tony gair
I'm trying to write my first django app using cbv's and good practice ala 2 scoops! (thanks for all the help so far in this forum btw!) I have constructed the app using django braces and CBV's and have noticed that I can only authenticate into my app through the admin panel. I suspect that dj

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thanks Frank, will look into this set of openid providers. Pratik On Wed, Mar 13, 2013 at 4:28 PM, Frank Bieniek < frank.bien...@produktlaunch.de> wrote: > Hi Pratik, > we have glued something together for openid. > > git+git://github.com/openid/python-openid.git@7d65da5987 > django-tastypie >

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Frank Bieniek
Hi Pratik, we have glued something together for openid. git+git://github.com/openid/python-openid.git@7d65da5987 django-tastypie django-guardian hg+http://bitbucket.org/jezdez/django_openid_provider/@746ab34a974a django-social-auth oauth2 # iptools/netaddress tools for the api access based on ip

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thanks for reminding about OAuth2. The API use case I'm currently dealing with includes authenticating my own clients with my server, not third party apps. Hence Oauth2 seems a bit weird here in terms of usability since it will ask user for permission to access the backend service when they visit

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Alec Taylor
NO! - THERE IS RESTFUL METHOD OF AUTHENTICATION! Use OAuth2. RFC6749. There are a bunch of server implementations for Django. Use one of them. On Wed, Mar 13, 2013 at 8:06 PM, Pratik Mandrekar wrote: > Thank you for the response! > > As Nick & Jani have pointed out, I figured out that there is

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thank you for the response! As Nick & Jani have pointed out, I figured out that there is no RESTFul way for authentication. Neither is there one good way all clients could access the api i.e Browsers can use Session Based Authentication while Mobile clients are better of using API based/digest aut

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Nick Apostolakis
On 12/03/2013 01:06 μμ, Jani Tiainen wrote: There is not exactly "RESTful way to authenticate", since after all REST is just an architecture to represent different resources and thus it's totally agnostic what comes to authentications and such. Simplest one (if you're use HTTP(S)) is to use

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Jani Tiainen
10.3.2013 22:54, Pratik Mandrekar kirjoitti: Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a use

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Alec Taylor
You'll want to setup an OAuth2 server for this. On 11/03/2013 7:54 AM, "Pratik Mandrekar" wrote: > Hello, > > I'm trying to figure out what would be the best way to integrate django > with ember.js/backbone from the user authentication point of view. I'm

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Jaimin Patel
al security > use Dajngo API key Authentication More secure > use OAuth mechanism hope it helps! On Sunday, March 10, 2013 4:54:10 PM UTC-4, Pratik Mandrekar wrote: > > Hello, > > I'm trying to figure out what would be the best way to integrate django > with ember.js/

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Silviu Dicu
to integrate django > with ember.js/backbone from the user authentication point of view. I'm > using Tastypie for creating RESTful resources. > > I have no problem creating APIs once a user has been authenticated using > the Session based authentication but I am wondering wh

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Nick Apostolakis
On 10/03/2013 10:54 μμ, Pratik Mandrekar wrote: Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs o

Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-10 Thread Pratik Mandrekar
Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a user has been authenticated using the Ses

user authentication problem

2011-09-27 Thread jenia ivlev
Hello. I want to register users. So I made a RegisterForm(ModelForm): Class Meta: model=User (from django.auten.contrib.User) no i display that form in a view and submit it. When i do form.is_valid(), i get this validation error: Your username and password didn't match. Please try again.

Re: User authentication in Django

2010-12-30 Thread aaron
According to the docs you just need to add {% csrf_token %} to each form. sorry for the noise. On Dec 30, 5:15 pm, aaron wrote: > okay, so I added a url directing accounts/login requests to a view > which in turn directs it to the login.html template suggested at > > http://docs.djangoproject.

Re: User authentication in Django

2010-12-30 Thread aaron
sword {% endif %} {% csrf_token %} User name: Password: {% endblock %} Any ideas? Cheers, Aaron On Dec 30, 4:33 pm, aaron wrote: > Hi guys, > > I'm attempting to follow the very simple setup for user authentication > in Django as detailed in

Re: User authentication in Django

2010-12-30 Thread aaron
okay, so I added a url directing accounts/login requests to a view which in turn directs it to the login.html template suggested at http://docs.djangoproject.com/en/dev/topics/auth/ Which is: {% extends "base.html" %} {% load url from future %} {% block content %} {% if form.errors %} Your use

User authentication in Django

2010-12-30 Thread aaron
Hi guys, I'm attempting to follow the very simple setup for user authentication in Django as detailed in the documentation here: http://docs.djangoproject.com/en/dev/topics/auth/ I've got a database synced, the apps installed as detailed, but when I attempt to access a password protec

user authentication

2010-12-09 Thread Paul
Long story short have several django projects running I log in ok and the projects run fine using the admin interface. However : I have added users and given them access to only certian applications on the django site using the admin interface, however when i log in with out supervisor access ch

Object permissions with user authentication

2010-07-16 Thread Paul Pepper
Is there a recommended way of implementing object permissions with Django's User authentication systems (i.e. a way of enforcing access/ authorisation restrictions on an object-basis)? The Django documentation states that there is "a foundation for object permissions, though t

Two user authentication systems

2009-08-10 Thread nerdydork
I have a budgeting application I created at inzolo.com. I want to create an affiliate program to offer commissions to those who refer paying users to the site. I will basically have a different login and just for affiliates. I'm wondering how to best handle this situation. Can I copy the auth.use

Re: HTTP Headers and User Authentication

2009-07-08 Thread Jarmo
> > There are a few different suggestions in this [1] stack overflow > question.  Since request.COOKIE['session'] didn't work, you might try > one of the others. > > [1]http://stackoverflow.com/questions/526179/in-django-how-can-i-find-ou... That was very helpful, Xiong. Thanks. I'm getting clos

Re: HTTP Headers and User Authentication

2009-07-08 Thread Xiong Chiamiov
On Jul 8, 9:40 am, Jarmo wrote: > > You need to send the 'sessionid'. It's in request.COOKIES. > So I have to send the sessionid in the HttpResponse back to the client > for it to use, right?  I tried getting it from the Request object > after I successfully logged in.  But it wasn't in the COOKI

Re: HTTP Headers and User Authentication

2009-07-08 Thread Jarmo
> > You need to send the 'sessionid'. It's in request.COOKIES. Thanks for the quick reply, Jashugan. So I have to send the sessionid in the HttpResponse back to the client for it to use, right? I tried getting it from the Request object after I successfully logged in. But it wasn't in the COOK

Re: HTTP Headers and User Authentication

2009-07-08 Thread Jashugan
On Jul 8, 6:29 am, Jarmo wrote: > If someone can help me understand what I need to send up in the HTTP > headers, I would greatly appreciate it. You need to send the 'sessionid'. It's in request.COOKIES. --~--~-~--~~~---~--~~ You received this message because yo

HTTP Headers and User Authentication

2009-07-08 Thread Jarmo
I'm writing my client using GWT and my back-end is being written with Django. I've had no issues making the two work together - they've tied together very nicely. I've just added my login functionality (as I'm getting to the point where "who" you are matters) and I've written a a view method to

User Authentication Redirect Loop

2009-07-06 Thread Darren Mansell
Hello. I'm trying to log a user in using the @login_required decorator. I've followed the examples on http://docs.djangoproject.com/en/dev/topics/auth/#topics-auth but I can't get it to stop spiraling into a redirect loop. I've tried everything I can think of but I'm out of ideas. Please help. My

Re: how to use email instead of username for user authentication?

2009-06-22 Thread bvemu
Hi Further to the above discussion, I did implement the code and it worked for me for the authentication while using the email id as the username (username=emailid ; valid_user = authenticate (username=username, password=password ) # django-admin.py --version 1.1 beta 1 SVN-10957 1.) The pro

Re: user authentication question

2009-05-11 Thread Masklinn
On 11 mai 09, at 23:16, Bobby Roberts wrote: > The question is, is there anyway to take the hashed password and > work it back to plain text so it can be used in login? Is there > another way to do this? Can it even be done at all? > No. For what it's worth, a better option might be to loo

Re: user authentication question

2009-05-11 Thread Bobby Roberts
*hashed On May 11, 5:16 pm, Bobby Roberts wrote: > hi group - > > i've read the docs but can't find an answer to a particular question. > In theory it's quite simple but I need help.  Our company has a > central database system from which we authenticate. The idea is to let > employees have a ce

user authentication question

2009-05-11 Thread Bobby Roberts
hi group - i've read the docs but can't find an answer to a particular question. In theory it's quite simple but I need help. Our company has a central database system from which we authenticate. The idea is to let employees have a central login across websites. In other words, if they login as

Re: User Authentication Woes

2009-05-10 Thread George Song
nvoices/84 and Bob can see invoice 84 but that invoices isn't > registered to him, its for a different customer entirely. > > Obviously I'm missing some authentication magic to stop that > happening. Question is I'm not sure how to go about that - is there a > straightforw

User Authentication Woes

2009-05-10 Thread Alfonso
ferent customer entirely. Obviously I'm missing some authentication magic to stop that happening. Question is I'm not sure how to go about that - is there a straightforward way I can implement more robust user authentication so a customer only sees the invoices they are destined to view!?

Re: how to use email instead of username for user authentication?

2009-04-12 Thread Praveen
You please check the satchmo package there they are using email as username in satchmo-registration using user=generate_id(email,firstname) On Apr 13, 9:44 am, pkenjora wrote: > Malcolm,  <- Remembered the 'l' this time! > > To keep things simple and avoid fragmenting this discussion into a > mi

Re: how to use email instead of username for user authentication?

2009-04-12 Thread pkenjora
Malcolm, <- Remembered the 'l' this time! To keep things simple and avoid fragmenting this discussion into a million different dead end tit for tats , I'll try to reign in the main points. 1. The default authentication method in Django should have no inherent restrictions. Such as blocking '@'

Re: how to use email instead of username for user authentication?

2009-04-11 Thread Malcolm Tredinnick
On Sat, 2009-04-11 at 07:52 -0700, pkenjora wrote: > Malcom, Well, I'm not "Malcom" (sic), but I'll reply anyway. >Google, FaceBook, and LinkedIn have been using email authentication > for how long now? With the default constraints you've put on Django a > developer would have to "work arou

Re: how to use email instead of username for user authentication?

2009-04-11 Thread Karen Tracey
On Sat, Apr 11, 2009 at 10:52 AM, pkenjora wrote: > > You are correct, username authentication has always been around. > However, the explicit banning and obfuscating of email authentication > in the default module has not. That is the part that worries me, that > is where things are going wron

Re: how to use email instead of username for user authentication?

2009-04-11 Thread pkenjora
Malcom, Google, FaceBook, and LinkedIn have been using email authentication for how long now? With the default constraints you've put on Django a developer would have to "work around" the out of the box code to make the project behave like the big 3 names on the web. In this light it sounds

Re: how to use email instead of username for user authentication?

2009-04-07 Thread Malcolm Tredinnick
On Tue, 2009-04-07 at 10:16 -0700, pkenjora wrote: > Hi, > > Why not remove the '@' filter and allow the specific project > developer the freedom to use email as username? What was the > reasoning behind this? One reason is that usernames can be made to be unique, since you're selecting a new

Re: how to use email instead of username for user authentication?

2009-04-07 Thread felix
I use an EmailBackend for auth, found on django snippets http://www.djangosnippets.org/snippets/74/ (though the one pkenjora posted looks the same but slightly better.) and a generate_username to create a clean unique username when creating accounts, also found on django snippets http://www.djang

Re: how to use email instead of username for user authentication?

2009-04-07 Thread pkenjora
Hi Again, Here is what we used to get around the email restriction. It works very well for authenticating through your application, Admin is a different story. In our case the users who register online never need to log into admin. If yours do, then you will have to strip logic from several

Re: how to use email instead of username for user authentication?

2009-04-07 Thread pkenjora
Hi, Why not remove the '@' filter and allow the specific project developer the freedom to use email as username? What was the reasoning behind this? I always like Django because it didn't try to force development down a specific path. All developers have their own way and every project is

Re: how to use email instead of username for user authentication?

2009-04-07 Thread johan.uhIe
The slugify function may also provide you with valid usernames, if you feed it with first and last name for example. But always be certain, that the username is unique, just as malcolm described. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: how to use email instead of username for user authentication?

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 19:04 -0700, Timboy wrote: > What's the best way to add users with an auto generating username? ie: > Taub.John, Smith.Tim, Smith.Tim2 You can do it however you like, since the user will never see it. Something as simple as taking the email address, replacing "@" with "AT" a

Re: how to use email instead of username for user authentication?

2009-04-02 Thread Timboy
What's the best way to add users with an auto generating username? ie: Taub.John, Smith.Tim, Smith.Tim2 On Apr 1, 3:37 am, johan.u...@student.hpi.uni-potsdam.de wrote: > Best way is to write your own authentication backend I think. > > Check the > docs:http://docs.djangoproject.com/en/dev/topic

Re: how to use email instead of username for user authentication?

2009-04-01 Thread johan . uhle
Best way is to write your own authentication backend I think. Check the docs: http://docs.djangoproject.com/en/dev/topics/auth/?from=olddocs#writing-an-authentication-backend This article might also give you a good idea: http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-wit

how to use email instead of username for user authentication?

2009-03-31 Thread Rama Vadakattu
The authentication model provided along with django is based on username. What to do to change the authentication based on email instead of username? To be more specific ~~~ With username authentication , to login user we do the following user = authenticate(name,password)

how to use email instead of username for user authentication?

2009-03-31 Thread Rama Vadakattu
The authentication model provided along with django is based on username. What to do to change the authentication based on email instead of username? To be more specific ~~~ With username authentication , to login user we do the following user = authenticate(name,password)

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Mario
Peter, I don't disagree with you. However, based on Glen's security report ( I suspect they are using Nessus/Retina to produce the scan result i.e. CVE - Common vulnerabilities and exposure ),his question was: Does anyone know where to find such "stamp of approval" or "denial" from HIPAA's point

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Peter Herndon
> You speak > of HIPAA which translates to FISMA requirements. I suspect they are complementary, not equivalent. > I assume your web > application i.e  MYSQL will be storing Personal Identifiable > Information (PII) such SSN, etc... In this case, you may have tough > battle getting your web appl

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Peter Herndon
them to ask about that system specifically. > The data is stored in a MySQL database and the standard > Django User Authentication model is used (out of the box with no changes). > Since security is a concern for the customer, I wanted to find all > information from HIPAA regarding the Dja

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Mario
s software in a more public arena. He   > has to get HIPAA approval. The data is stored in a MySQL database and   > the standard Django User Authentication model is used (out of the box   > with no changes). Since security is a concern for the customer, I   > wanted to find all

HIPAA, Django and User Authentication/Security

2009-03-12 Thread Glen Jarvis
I have a customer who has a Django application that I have upgraded to Django 1.1. The customer wants to take this software in a more public arena. He has to get HIPAA approval. The data is stored in a MySQL database and the standard Django User Authentication model is used (out of the box

Re: Redirecting to different page depending on user authentication

2008-08-20 Thread Norman Harman
ad777 wrote: > Hi there, > > I am new at django and I was wondering what is the best way of > redirecting users to their own customized page after they get > authenticated. I have extended the user model to include a unique > user id for each user... is it somehow possible to use this? The user

Redirecting to different page depending on user authentication

2008-08-20 Thread ad777
Hi there, I am new at django and I was wondering what is the best way of redirecting users to their own customized page after they get authenticated. I have extended the user model to include a unique user id for each user... is it somehow possible to use this? Thanks. --~--~-~--~~

Re: User Authentication - index/base

2008-07-01 Thread Julien
ur settings? > > "django.core.context_processors.auth" > > > Alfonso wrote: > > > Hey, > > > > I've implemented a user login widget on my site.  A simple 'Sign in' > > > at top of every page that turns into 'Welcome John, View you

Re: User Authentication - index/base

2008-07-01 Thread Alfonso
n your settings? > "django.core.context_processors.auth" > > Alfonso wrote: > > Hey, > > > I've implemented a user login widget on my site.  A simple 'Sign in' > > at top of every page that turns into 'Welcome John, View your profile' > > following successful

Re: User Authentication - index/base

2008-07-01 Thread Julien
lcome John, View your profile' > following successful user authentication. Works great - only issue > I'm having is that on home page the text reverts to 'Sign In' even > when user is logged in, only happens on this page. Not sure why this > is occurring. Code below

User Authentication - index/base

2008-07-01 Thread Alfonso
Hey, I've implemented a user login widget on my site. A simple 'Sign in' at top of every page that turns into 'Welcome John, View your profile' following successful user authentication. Works great - only issue I'm having is that on home page the text reverts t

Re: default user authentication, and session timeout

2008-06-27 Thread hyde
this works, Thanks! On Jun 27, 7:24 pm, Alex Slesarev <[EMAIL PROTECTED]> wrote: > On Jun 28, 1:13 am, hyde <[EMAIL PROTECTED]> wrote: > > > How to control thesessiontimeoutvalue if using Django's default > > user authentication? > > Look in django docs

Re: default user authentication, and session timeout

2008-06-27 Thread Alex Slesarev
On Jun 28, 1:13 am, hyde <[EMAIL PROTECTED]> wrote: > How to control the session timeout value if using Django's default > user authentication? Look in django docs (available in svn trunk). You should set SESSION_COOKIE_AGE variable (in seconds) in the

  1   2   >