Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 6898b2c

Browse files
author
Carlton Gibson
committed
Merge pull request #226 from shanemgrey/patch-1
Lengthen password
2 parents 193b375 + 9a37097 commit 6898b2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ urlpatterns = patterns(
8080
)
8181
```
8282

83-
You can easily test if the endpoint is working by doing the following in your terminal, if you had a user created with the username **admin** and password **abc123**.
83+
You can easily test if the endpoint is working by doing the following in your terminal, if you had a user created with the username **admin** and password **password123**.
8484

8585
```bash
86-
$ curl -X POST -d "username=admin&password=abc123" http://localhost:8000/api-token-auth/
86+
$ curl -X POST -d "username=admin&password=password123" http://localhost:8000/api-token-auth/
8787
```
8888

8989
Alternatively, you can use all the content types supported by the Django REST framework to obtain the auth token. For example:
9090

9191
```bash
92-
$ curl -X POST -H "Content-Type: application/json" -d '{"username":"admin","password":"abc123"}' http://localhost:8000/api-token-auth/
92+
$ curl -X POST -H "Content-Type: application/json" -d '{"username":"admin","password":"password123"}' http://localhost:8000/api-token-auth/
9393
```
9494

9595
Now in order to access protected api urls you must include the `Authorization: JWT <your_token>` header.

0 commit comments

Comments
 (0)