Skip to content
Snippets Groups Projects
Commit fe26cdf8 authored by Alexandre Ferland's avatar Alexandre Ferland
Browse files

Merge pull request #1 from iiSeymour/patch-1

Use a python code block for syntax rendering
parents f657f621 369f1b16
No related branches found
No related tags found
No related merge requests found
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
================================== ==================================
Alexandre Ferland (admiralobvious) Alexandre Ferland (admiralobvious)
Chris Seymour (iiSeymour)
...@@ -19,6 +19,7 @@ with and tested on Python 2.6 and 2.7. ...@@ -19,6 +19,7 @@ with and tested on Python 2.6 and 2.7.
Next, add a ``LDAP`` instance to your code and at least the three Next, add a ``LDAP`` instance to your code and at least the three
required configuration options: required configuration options:
```python
from flask import Flask from flask import Flask
from flask.ext.simpleldap import LDAP from flask.ext.simpleldap import LDAP
...@@ -33,7 +34,7 @@ required configuration options: ...@@ -33,7 +34,7 @@ required configuration options:
@ldap.login_required @ldap.login_required
def ldap_protected(): def ldap_protected():
return 'Success!' return 'Success!'
```
Check the [examples](examples/) folder for a more complex example using LDAP groups. Check the [examples](examples/) folder for a more complex example using LDAP groups.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment