Michael
5d33c006a2
gitignore all sqlite files inside db folder ( #45 )
2019-10-22 09:31:28 +02:00
Zane Chua
2112a60001
Update session.js redis configuration ( #42 )
2019-05-27 09:42:37 +02:00
mrpetrocket
7b9affcb8f
Fix typos ( #39 )
2019-03-24 21:35:21 +01:00
Mahdi Tamadon
44d80187c6
feat(gitignore): Ignore VSCode & Webstorm history directories ( #38 )
...
Committing history and other IDE/Editor files make problem in team projects.
2019-02-06 18:59:15 +01:00
Will Vincent
fd621ca5ae
fix(trait): syntax error ( #37 )
2019-01-21 10:04:24 +01:00
Romain Lanz
8e46d02ed1
feat: add NoTimestamp trait + ConvertEmptyStringsToNull middleware ( #30 )
...
Hey! 👋
This PR add some middleware and traits by default.
**Middleware**:
- `AllowGuestOnly` throws an exception if you are authenticated.
- `ConvertEmptyStringsToNull` converts empty strings in the request body to `null`
**Trait**:
- `NoTimestamp` removes the need for `created_at` and `updated_at` fields.
- `FormatDate` formats the date following a convention.
**FormatDate**
The convention is:
- Ends with `_at` => DateTime
- Ends with `_on` => Date
You can change the format you use in your UI with two getters.
```js
class MyModel extends Model {
static get formatDate () { return 'DD.MM.YYYY' }
static get formatDateTime () { return 'DD.MM.YYYY HH:mm' }
}
```
You can also directly change default values inside the Trait since it is a user Trait and not defined in the core.
<hr>
If this is merged, I'll provide the same PR to the `API` blueprint.
2019-01-02 10:10:56 +01:00
Jonathan
29d8045f57
feat(views): link to the doc ( #34 )
...
* feat(views): link to the doc
* typo(views): removed extra space
Co-Authored-By: Grafikart <Grafikart@users.noreply.github.com>
2018-12-27 08:47:12 +01:00
Romain Lanz
403223214f
fix(route): fix import syntax
2018-10-05 15:14:58 +02:00
Harminder Virk
bbcefa9097
feat(middleware): add named guest middleware
2018-10-01 20:28:31 +02:00
Harminder Virk
1ffe22be10
fix(session): cookie sameSite must be false
2018-10-01 20:25:43 +02:00
Harminder Virk
428f49c801
feat(config): add generic cookie options
2018-10-01 20:25:43 +02:00
Harminder Virk
b95abf4364
chore(package): update dependencies
2018-10-01 20:25:43 +02:00
Johnny Wu
1d002c47d3
fix type of Route ( #31 )
2018-10-01 20:23:03 +02:00
Romain Lanz
146553b21b
chore: remove package-lock
2018-09-22 10:05:51 +02:00
Romain Lanz
dc6f64c1b2
feat(intellisense): add type comments
2018-09-15 09:43:08 +02:00
Romain Lanz
b38ea8d773
feat(intellisense): add type comments
2018-09-15 09:37:07 +02:00
Romain Lanz
489897c488
fix(cors): add missing verbs
2018-09-04 20:33:39 +02:00
Romain Lanz
11db440607
fix(auth): add api authenticator config
2018-08-28 23:43:50 +02:00
Emirhan Engin
702c41a25f
Update routes.js ( #29 )
...
This will be more accurate.
2018-06-16 08:40:33 +02:00
Romain Lanz
0b79d48d21
fix(User): use beforeSave hook
2018-06-10 22:33:30 +02:00
Emirhan Engin
edcd369037
Update welcome.edge ( #27 )
...
"css" method deprecated.
2018-06-09 08:14:53 +02:00
Romain Lanz
168cae68f4
chore(env): remove default APP_KEY
2018-06-06 09:11:41 +02:00
Romain Lanz
a83503ffe1
chore(env): add HASH_DRIVER to default env file
2018-06-06 09:09:27 +02:00
Romain Lanz
9fa2f11395
fix(config): change env key name
2018-06-06 09:08:52 +02:00
Francisco Manzano Magaña
9edd702c8a
fix(config): require Env module
2018-06-06 08:56:01 +02:00
Harminder
9c332a9065
feat(hash): add hash config file
2018-06-05 17:53:20 +05:30
Harminder
ac1369e52c
chore(package): update dependencies
2018-06-05 17:53:20 +05:30
Luiz Felipe
550bcd891d
style(migration): use parentheses in arrow function
...
* Update 1503248427885_user.js
* Update 1503248427886_token.js
2018-06-05 17:53:20 +05:30
Roman
ba18e2d712
feat(hook): Verify status before hashing
...
To prevent double-hashing on udpate
2018-06-05 17:53:20 +05:30
Onwuka Gideon
4405040d99
style(config): typo in shieldconfiguration
2018-06-05 17:53:20 +05:30
Jofry
d8d11858ea
fix: typo ( #21 )
...
`Server levl` into `Server level`
2018-06-05 17:53:20 +05:30
Kevyworks
43198c1814
chore(schema): Change token length + index
2018-06-05 17:53:20 +05:30
Romain Lanz
225c4dcd58
chore(gitignore): remove lock files
2018-06-05 17:53:20 +05:30
Romain Lanz
6a18c62d31
chore(auth): remove deprecated call
...
Closes https://github.com/adonisjs/adonis-fullstack-app/issues/17
2018-06-05 17:53:20 +05:30
Romain Lanz
3735f11f91
chore(hook): move beforeCreate hook to user model ( #16 )
2018-06-05 17:53:20 +05:30
Harminder Virk
27f508468d
chore(package): update dependencies
2018-03-18 20:44:34 +05:30
Harminder
e708effd58
chore(package): update dependencies
2018-02-09 17:05:39 +05:30
Harminder
57384746c2
chore(package): update dependencies
2018-02-09 17:05:39 +05:30
Michael Raypold
ed144ae039
doc(user-model): fix typo in addHook
2018-02-09 17:05:39 +05:30
Abijeet
ad27e12100
Changes the invalid routing URL path.
...
Fixes #10
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
2018-02-09 17:05:39 +05:30
Vince van Noort
4a5bda0737
fix(config): use DB_DATABASE env var of static sqlite filename
...
* SQLite should reference the filename from the .env file instead of development.sqlite
* Update database.js
2018-02-09 17:05:39 +05:30
Harminder Virk
eb9afd9377
fix(hooks): use beforeCreate over beforeSave
2018-02-09 17:05:39 +05:30
Thomas Tilkema
1af4034a3b
fix(config): update redis reference in session file
2017-11-28 20:56:36 +05:30
Harminder Virk
c4e9583325
fix(locales): use loader over driver
2017-11-28 20:54:53 +05:30
Harminder Virk
bfeb193eb4
chore(package): update dependencies
2017-11-28 20:54:49 +05:30
Harminder Virk
1dfd4bc4d4
chore(package): update dependencies
2017-11-08 11:03:36 +05:30
Romain Lanz
1941a71971
Merge pull request #6 from alanaasmaa/patch-1
...
FIX: Added type table
2017-10-30 17:52:21 +01:00
Harminder Virk
cd9387e2c2
chore(package): update dependencies
2017-10-30 13:31:09 +05:30
Harminder Virk
c771d1fed6
chore(package): remove unwanted scripts
2017-10-30 13:14:40 +05:30
Harminder Virk
c45e2b9e23
chore(gitignore,env): structure and add comments
2017-10-30 13:13:29 +05:30