Skip to content

Commit

Permalink
fix(website): general fixes to web configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jairmilanes committed Nov 16, 2022
1 parent c489412 commit 23026bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ export interface CorsConfig extends OptionalFeature {
}

export interface AuthConfig extends OptionalFeature {
enabled: boolean;
path: string;
securePath: string;
usersTable: string;
usernameColumn: string;
passwordColumn: string;
}

export interface AutoRouteConfig {
Expand Down Expand Up @@ -322,7 +325,6 @@ export interface User {
password: string;
avatar: string;
timeZone: string;
[prop: string]: SafeAny;
}

export interface AuthenticateCallbackOptions {
Expand Down
2 changes: 1 addition & 1 deletion web/.hotbarsrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source": "src",
"styles": "styles",
"styleMode": "scss",
"jsonDb": "db",
"jsonDb": "db/db",
"auth": {
"enabled": true,
"path": "auth"
Expand Down
2 changes: 1 addition & 1 deletion web/src/schema/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"gender": "name.sex",
"firstName": "unique:name.firstName:prop.gender",
"lastName": "unique:name.lastName:prop.gender",
"userName": "lodash.join:prop.firstName,prop.lastName _",
"username": "lodash.join:prop.firstName,prop.lastName _",
"password": "hash:internet.password",
"avatar": "unique:internet.avatar",
"jobTitle": "name.jobTitle",
Expand Down
1 change: 1 addition & 0 deletions web/src/views/sign-in.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<h3>Login Passowrd</h3>
<input name="username" type="text" />
<input name="password" type="password" />

<button type="submit">Sign-In</button>
</form>
</div>
Expand Down

0 comments on commit 23026bc

Please sign in to comment.