Comments (9)
Hi! Thanks for opening your first issue at JagratiWebApp 🚀 We really appreciate it. 🙌 Someone from our team will get back here soon.
from jagratiwebapp.
Thanks, @engineerscodes for raising this issue. We should definitely validate the form in the backend. But I think a better place to validate the forms is forms.py
and not views. Views should only contain the main backend logic.
We are trying to port our forms to Django forms, starting from issue #263, as backend would definitely provide a better form validation.
from jagratiwebapp.
@garg3133 he is mentioning this issue while creating a new user account, I guess so we need a form there too
I would like to work on this
from jagratiwebapp.
look at this line -
JagratiWebApp/accounts/views.py
Line 83 in 92b70b4
before doing this you could do regex, to check if its a valid Email address or Not
JagratiWebApp/accounts/views.py
Line 106 in 92b70b4
from jagratiwebapp.
Yes, your right I did not see the form.py file, you could do def clean and raise an error if it's not a valid email
from jagratiwebapp.
There is already form.py
JagratiWebApp/accounts/forms.py
Line 6 in f28e7b8
JagratiWebApp/accounts/forms.py
Line 7 in f28e7b8
from jagratiwebapp.
Yeah, I guess I created this form to escape Django's password validation while creating a new user through Admin Portal (you can see this form is only used in accounts/admin.py
).
I think we can just create a new form here, and use Django's password validation out-of-the-box and check the email against the Regex pattern in clean_email
method.
from jagratiwebapp.
I would like to work on this @garg3133
from jagratiwebapp.
sir I am django developer and currently working on making REST APIs through django and integrate it with react frontend, so I would like to work on this if assigned
from jagratiwebapp.
Related Issues (20)
- Add a table with volunteer schedule on volunteer profile page HOT 9
- Modifying the "Donate Us" part: HOT 2
- [feature]: Auto merge PR from dependabot HOT 2
- Improving UI of Header HOT 4
- Adding links for emails present in the homepage HOT 4
- [bug]: Events Tab & Events Tab & Team Tab in Header is not working | not going to desired menu HOT 2
- [feature]: Form for creating/updating of a student HOT 7
- Forget password improvement HOT 6
- Navbar in Log In and Sign Up page HOT 1
- [bug]: Misplaced Hover Effect HOT 5
- [feature]: Preloader HOT 1
- [feature]: Scroll top button on capture page HOT 3
- [feature]: UI : Contact Section on new home page HOT 1
- [bug]: Making transitions in Our Initiatives section smoother and equal timed HOT 2
- Update Profile picture on Student Profile not working HOT 8
- Adding Students page HOT 3
- Code Improvement: Replace all the #ff8c00 colors with a variable HOT 3
- [feature]: All Option on Student Attendance Page
- [feature]: Add a new Donation Page instead of gform. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jagratiwebapp.