Hi,
You shouldn't inject SettingManager in your entity. You can create a custom method and use it in AutoMapper, it's possible via custom value resolvers <a class="postlink" href="https://github.com/AutoMapper/AutoMapper/wiki/Custom-value-resolvers">https://github.com/AutoMapper/AutoMappe ... -resolvers</a>.
You need to pass an instance of your custom value resolver to Automapper's ResolveUsing.
But I think mapping should be simple, it's better to do int in your application layer rather than putting his logic in mapping.
Hi,
@TInman, thanks a lot for your solution, it is really helpful. @djfuzzy, I think you can gneerate tokens in the application layer, because you can use UserManager in application layer. But you need to set userManager's UserTokenProvider in web layer (probably in your web module).
Hi,
The <role-combo> is an angular directive which is defined in App\common\directives\roleCombo.js file. It also has roleCombo.cshtml file related to it. You can check those two files in order to create your own directive.
Hi,
Actually changing solution name after project creatin is not suggested but I understand there might be such a need after some time of development.
We didn't share our project renaming code because of licensing issues, see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/200">https://github.com/aspnetzero/aspnet-zero/issues/200</a>.
In your case I think you need to change project names in WebContentDirectoryFinder.cs. But if you even solve this problem, there might be some other issues.
Hi,
In order to skip that exception, transaction must be disabled just like we do it in Migrator project. Instead of doing it in DbContext, you can do it in your Application Start.
After ABP initialization, just run a code similar in Migrator tool.
If you have difficulties or problems applying this, please let us know.
Thanks.
@daws, Thank you for your answer, we really appriciate it :)
Hi,
Yes you can do that. In order to do that create a user class of your own like this
public class User : AbpUser<User>
{
....
}
and reference this entity in your Person entity. In order to add new properties to it, you can read this document <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities">https://aspnetzero.com/Documents/Extend ... g-Entities</a>.
It's a good practice actually.
Hi,
Sorry, I misunderstand you. But, you can follow a similar path with two factor auth.
Ask for phone number in register page, send a validation code to user, redirect user to code verification screen. In the mean time you can store code in cache, we do it for two factor verification code. You can check that code in AspNet Zero project.
Hi,
You can pass data like this,
$uibModal.open({
templateUrl: '~/App/common/views/users/createOrEditModal.cshtml',
controller: 'common.views.users.createOrEditModal as vm',
backdrop: 'static',
resolve: {
userId: function () {
return userId;
}
}
});
then get it in modal like this,
(function () {
appModule.controller('common.views.users.createOrEditModal', [
'$scope', '$uibModalInstance', 'abp.services.app.user', 'userId',
function ($scope, $uibModalInstance, userService, userId) {
....
}
]);
})();
Hi,
app.localize is defined in helpers.js file in common scripts. You need to include it in your page.