Commit a19004ec authored by LAVENIER's avatar LAVENIER
Browse files

Release v0.13.15

[fix] Login auth: allow to override the default login/pwd, when develop
parent 7af8bb20
{
"name": "@sumaris-net/ngx-components",
"description": "SUMARiS Angular components",
"version": "0.13.14",
"version": "0.13.15",
"author": "contact@e-is.pro",
"license": "AGPL-3.0",
"readmeFilename": "README.md",
......
......@@ -94,11 +94,9 @@ export class AuthForm extends AppForm<AuthData> implements OnInit {
// (see values in the test database - XML files in the module 'sumaris-core-test-shared')
this.form.patchValue({
// Basic auth (using Person.username)
// username: 'admq2', password: 'q22006'
// Override using environment, if any
...this.environment.development
// Token auth (using Person.pubkey)
username: 'admin@sumaris.net', password: 'admin'
});
}
}
......
......@@ -42,4 +42,10 @@ export class Environment {
// About
sourceUrl?: string;
reportIssueUrl?: string;
// Development
development: {
username?: string;
password?: string;
};
}
......@@ -8,7 +8,7 @@ import {Environment} from './environment.class';
const pkg = require('../../package.json');
export const environment: Environment = Object.freeze({
export const environment = Object.freeze(<Environment>{
name: (pkg.name as string),
version: (pkg.version as string),
production: false,
......@@ -54,6 +54,16 @@ export const environment: Environment = Object.freeze({
// About
sourceUrl: (pkg.repository && pkg.repository.url as string),
reportIssueUrl: (pkg.bugs && pkg.bugs.url as string),
// Development
development: {
// Basic auth (using Person.username)
// username: 'admq2', password: 'q22006'
// Token auth (using Person.pubkey)
username: 'admin@sumaris.net', password: 'admin',
}
});
/*
......
......@@ -61,6 +61,16 @@ export const environment: Environment = Object.freeze({
// About
sourceUrl: 'https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components',
reportIssueUrl: 'https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components/-/issues',
// Development
development: {
// Basic auth (using Person.username)
// username: 'admq2', password: 'q22006'
// Token auth (using Person.pubkey)
username: 'admin@sumaris.net', password: 'admin',
}
});
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment