Skip to content

Commit

Permalink
fix: grammar errors and spelling mistakes (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo314 authored Oct 5, 2022
1 parent 2735e3f commit cb93301
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/permission/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ See the following example to get a clearer picture of Casdoor's permission contr

Before using `Permission`, you need to create a `Model` which is abstracted into a CONF file based on the PERM metamodel. You can visit the [Casbin documentation](https://casbin.io/docs/syntax-for-models) for more information. We recommend using the [Casbin Online Editor](https://casbin.org/casbin-editor/) to design the model and check the grammar.

Click the `Models` tab and add a new model. In the edit page, you can config custom model such as ACL model in the `Model text`.
Click the `Models` tab and add a new model. In the edit page, you can config customized models such as ACL model in the `Model text`.

```ini
[request_definition]
Expand Down
6 changes: 3 additions & 3 deletions docs/products/product.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: Add products that you want to sell
keywords: [products]
---

You can add the product (or service) you want to sell. The following will tell you how to add a product
You can add the product (or service) you want to sell. The following will tell you how to add a product.

## Configuring Products Attributes
First, you need to understand the basic properties of the product
First, you need to understand the basic properties of the product:
`Tag`
`Detail`
`Currency`
Expand All @@ -27,7 +27,7 @@ Finally, fill in the **Return URL**. This is the url to jump from the payment pr
is completed.

## Preview the Product
You're done. see the review and save:
You're done. See the review and save:
![product_preview](/img/products/product_preview.png)


Expand Down
10 changes: 5 additions & 5 deletions docs/provider/captcha/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Add a captcha to your application
keywords: [captcha]
---

Casdoor can be configured to support diffrent captcha to check whether the operation is by human. If you add a captcha provider and applied it in the application, when the user login, register or forget password and need send a code, then a captcha check dialog will appear to check whether the operation is by human.
Casdoor can be configured to support different captchas to check whether the operation is made by human. If you add a captcha provider and applied it in the application, when the user logins, registers or forgets password and needs to send a code, then a captcha check dialog will appear to check whether the operation is made by human.

Now, Casdoor supports many captcha providers. Here are the providers Casdoor supporting:

Expand All @@ -13,7 +13,7 @@ Now, Casdoor supports many captcha providers. Here are the providers Casdoor sup
| <img src="https://cdn.casbin.org/img/social_default.png" width="40"></img> | <img src="https://cdn.casbin.org/img/social_recaptcha.png" width="40"></img> | <img src="https://cdn.casbin.org/img/social_hcaptcha.png" width="40"></img> | <img src="https://cdn.casbin.org/img/social_aliyun.png" width="40"></img> |
| **** | **** | **** | **** |

We will show you how to apply for a captcha and add it to casdoor.
We will show you how to apply a captcha and add it to Casdoor.

## Add a captcha provider

Expand All @@ -23,10 +23,10 @@ We will show you how to apply for a captcha and add it to casdoor.
4. Click the new provider to modify it
5. Select `Captcha` in `Category`
6. Choose the Captcha provider you need in `Type`
7. Fill the most import information, diffent captcha provider has different information that need be filled
7. Fill the most important information, different captcha providers have different information that needs to be filled in

## Applied in application

1. Click `Applicaton` in the top bar and choose one application, edit
2. click provider add button, select the provider you just added
1. Click `Applicaton` in the top bar and choose one application to edit.
2. Click provider add button, and select the provider you just added.
3. Done!
4 changes: 2 additions & 2 deletions docs/provider/captcha/recaptcha.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ reCAPTCHA is provided by Google. And we use reCAPTCHA v2 Checkbox . You can see

To start using reCAPTCHA, you need to [sign up for an API key pair](http://www.google.com/recaptcha/admin) for your site. The key pair consists of a site key and secret key. The site key is used to invoke reCAPTCHA service on your site or mobile application. The secret key authorizes communication between your application backend and the reCAPTCHA server to [verify the user's response](https://developers.google.com/recaptcha/docs/verify).

First, choose the [type of reCAPTCHA](https://developers.google.com/recaptcha/docs/versions) and then fill in authorized domains or [package names.](https://developer.android.com/guide/topics/manifest/manifest-element.html#package) After you have accepted the terms of service, click **Register** to get new API key pair.
First, choose the [type of reCAPTCHA](https://developers.google.com/recaptcha/docs/versions) and then fill in authorized domains or [package names.](https://developer.android.com/guide/topics/manifest/manifest-element.html#package) After you have accepted the terms of service, click **Register** to get a new API key pair.

![recaptcha create apiKey](/img/providers/captcha/recaptcha_create_apiKey.png)

Expand All @@ -26,7 +26,7 @@ Select category as **Captcha** , type as **reCAPTCHA** . And you need to fulfi

![Recaptcha provider](/img/providers/captcha/recaptcha_provider.png)

And you can click **Preview** botton to preview the style of this captcha.
And you can click **Preview** button to preview the style of this captcha.

![Recaptcha preview](/img/providers/captcha/recaptcha_preview.png)

Expand Down

0 comments on commit cb93301

Please sign in to comment.