Base solution for your next web application

Activities of "paradoxit"

Thanks ismcagdas

Hi ismcagdas,

Thank you for replying. I don't however know what the current logged in users culture is from the server side, how can I find this out?

Kind regards, David Hawkins

Please can you advise how I can return a localized formatted date on the server side from an IApplicationService?

I can do this locally in Angular using moment.js but I want to format the server side date to export a PDF.

Thanks this worked great!

When I follow the reset password link and reset an account password I am directed to the login page. However when I login with the new password I am immediately redirected to the password reset page again. Could you please advise how to resolve this?

Thanks, David HAwkins

I would like to offer users to sign in with an email address which is used to determine their tenant.

I have restricted usernames to be the email address, what system changes are required to make this work. I assume I will need to create a service which takes a username and returns the tenant key and id.

Has anyone achieved this or is there any advice on which UI and API methods need updating to support this.

Thanks in advance,

David Hawkins

I have noticed when I add a locale such as en-GB to my website, that the built in messages in the module zero DLL such as Duplicate username or email error no longer work/resolve. How can I add the en-GB locale to the localization?

An example is that Identity.DuplicateName no longer resolves.

Thanks in advance, David Hawkins

I updated my root-routing.module.ts file to preload all lazy loaded routes and now there is no delay.

See below code:

import { NgModule } from '@angular/core';
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';

const routes: Routes = [
    { path: '', redirectTo: '/app/main/home', pathMatch: 'full' },
    {
        path: 'account',
        loadChildren: 'account/account.module#AccountModule', //Lazy load account module
        data: { preload: true }
    }
];

@NgModule({
    imports: [RouterModule.forRoot(routes,
    {
        preloadingStrategy: PreloadAllModules
    }),],
    exports: [RouterModule],
    providers: []
})
export class RootRoutingModule { }

Thanks, I tried it in production and it's still 3-4 seconds.

I'll look into how to disable lazy loading for that module. I also heard about a feature called Preloading.

Kind regards,

David

With the Angular 3.3.0 solution, how can I eager load the admin module? Currently when the site loads and I click any of the admin pages there is a delay of 3-4 seconds for the module to load.

Any advice would be much appreciated.

Thanks,

David Hawkins

Showing 11 to 20 of 40 entries