Skip to content

Commit ec96b6a

Browse files
committed
fix typos
1 parent 22fdfbf commit ec96b6a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

chapter_19_spiking_custom_auth.asciidoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ and convince yourself that it really does work.
111111

112112
((("spiking and de-spiking", "branching your VCS")))
113113
((("Git", "creating branches")))
114-
This spike is going to be a bit more involved that the last one,
114+
This spike is going to be a bit more involved than the last one,
115115
so we'll be a little more rigorous with our version control.
116116

117117
Before embarking on a spike it's a good idea to start a new branch,
@@ -178,15 +178,15 @@ and a logout link for users who are already authenticated:
178178
((("Django framework", "sending emails", id="DFemail18")))
179179
((("send_mail function", id="sendmail18")))
180180
((("emails, sending from Django", id="emails18")))
181-
The login theory will be something like this:
181+
The login in theory will be something like this:
182182

183183
- When someone wants to log in, we generate a unique secret token for them,
184184
store it in the database linked to their email, and send it to them.
185185

186186
- The user then checks their email,
187187
which will have a link to a URL that includes that token.
188188

189-
- When they click that link, we check whether the token exists in database,
189+
- When they click that link, we check whether the token exists in the database,
190190
and if so, they are logged in as the associated user.
191191

192192
// https://docs.djangoproject.com/en/5.0/topics/auth/customizing/
@@ -296,7 +296,7 @@ with our 'base.html' in the real version.)
296296

297297
The https://docs.djangoproject.com/en/5.1/topics/email/[django docs on email]
298298
explain how `send_mail()` works, as well as how you configure it
299-
by telling Django what email to server to use,
299+
by telling Django what email server to use,
300300
and how to authenticate with it.
301301
I'm just using my Gmailfootnote:[
302302
Didn't I just spend a whole intro banging on about the privacy implications
@@ -542,7 +542,7 @@ $ pass:quotes[*python src/manage.py migrate*]
542542
Running migrations:
543543
Applying accounts.0002_listuser... OK
544544
----
545-
/ch18l009-1
545+
//ch18l009-1
546546

547547

548548
==== Finishing the Custom Django Auth
@@ -562,11 +562,14 @@ Hmm, we can't quite cross off anything yet.
562562
Turns out the steps we _thought_ we'd go through
563563
aren't quite the same as the steps we're _actually_ going through
564564
(this is not uncommon as I'm sure you know).
565+
// CSANAD: I find it vague like this. Maybe it would be helpful to clarify what
566+
// it is that "we are actually going through" and what it was that
567+
// "we thought we'd go through".
565568

566569
Still, we're almost there--our last step will combine recognising the token
567570
and then actually logging the user in.
568571
Once we've done this,
569-
we'll be able to pretty much strike off all the items on our scratchpad:
572+
we'll be able to pretty much strike off all the items on our scratchpad.
570573

571574

572575
So here's the view that actually handles the click through from the link in the

0 commit comments

Comments
 (0)