aperezalbela
Re:How to Bypass WhatsApp Web's Locked Chat Feature
on Friday December 06, 2024 @07:45PM (#42346212)
"Trying something?"
Re:Cardie – An open source business card designer and sharing platform
on Wednesday July 31, 2024 @11:13PM (#41125822)
I'd suggest using forms.Form for a LoginForm containing e.g.
username = forms.CharField(max_length=150) password = forms.CharField(widget=forms.PasswordInput)
and then a view to instantiate form with request.POST (if request.POST) like:
form = LoginForm(request.POST)
and then if form.is_valid() you can clean data using
username = form.cleaned_data['username']
and the same for password.
Then:
user = authenticate(request, username=username, password=password)
and then check if user is not None then login(request, user)
Note that login and authenticate come from django.contrib.auth import authenticate, login
Hope that helps.
Re:Cardie – An open source business card designer and sharing platform
on Wednesday July 31, 2024 @09:51PM (#41125484)
Passing username and password as HTTP Headers doesn't seem like a good idea
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @11:33PM (#41105841)
I'm not comparing on those terms. I'm comparing about "being supposed" to do something. We may have the ability, but that doesn't mean that we will do everything we have the ability for.
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @11:28PM (#41105822)
You may. But you are not supposed.
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @11:19PM (#41105778)
Hackers also use banks. Are them supposed to hack them as well?
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @11:17PM (#41105764)
Not true. You must install from the AppStore and it charges you.
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @11:14PM (#41105755)
So writing CSS overrides for every site I consume sounds healthy and fair to you?
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @10:56PM (#41105696)
Like https://darkreader.org/ that costs?
Re:Please add a "dark" theme for Hacker News
on Monday July 29, 2024 @10:17PM (#41105537)
It would be really appreciated for you guys to consider adding a dark theme for HackerNews.
The reasons, well, could be added as comments here in the thread. Though, as you may imagine, it's mostly because of my eyes when I visit you guys without daylight.