Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "apexdodge"

Module Zero comes with this AuditLog table. It is a cool feature, no doubt, but I need to turn it off for some methods for security reasons.

See: <a class="postlink" href="http://i.imgur.com/46j1lX9.png">http://i.imgur.com/46j1lX9.png</a>

Any method where I am authenticating a user or creating a new account -- I need to turn it off, or at least modify it so it doesn't store the password as plaintext.

Any help? Is there a [NoAuditLog] Attribute I can use or something?

Nope, my bad!

For anyone who runs into a similar problem, you need to enable MultiTenancy in your WebModule file like this:

<a class="postlink" href="http://i.imgur.com/Gb2TCmO.png">http://i.imgur.com/Gb2TCmO.png</a>

Hope that helps.

Hey there, I've run into a snag. I need to use multi-tenant and I'm trying to complete the login mechanism.

Here: <a class="postlink" href="http://i.imgur.com/6WlqFQe.png">http://i.imgur.com/6WlqFQe.png</a>

Here's the problem -- by default it seems that AbpSession.TenantId = 1. The TenantId is set to 1 even if you haven't logged in yet.

This is fine, but the problem is _userManager.LoginAsync appears to be filtering based on TenantId. I don't think this makes much sense. You can't filter on Tenant if the Tenant is set to 1.

I tested this by first being able to successfully login with a username and password if the user's TenantId was 1. I then changed the user's TenantId to 2 and I get InvalidUserNameOrEmailAddress.

Unless it's my responsibility to set the tenant session prior to running LoginAsync? That doesn't make sense either since I should only set the tenant upon a successful login.

LoginAsync should not filter on tenant in my opinion, unless I am doing something terribly wrong. Please let me know.

Thanks

Answer

This isn't really ASP.NET Boilerplate specific, but just a generic asp.net mvc question. There are tons of resources on the web that demonstrate how to upload files.

Personally, I use a service to handle this called Filepicker. Worth checking out here: <a class="postlink" href="https://www.filepicker.com/">https://www.filepicker.com/</a>

Answer

Great to hear. Thanks so much for your hard work and effort.

Question

Hello,

ASP.NET 5 is now in preview mode. I was wondering if you had plans to eventually build a boilerplate version using the latest technology when they fully release it?

<a class="postlink" href="https://weblogs.asp.net/scottgu/introducing-asp-net-5">https://weblogs.asp.net/scottgu/introducing-asp-net-5</a>

Thanks

Answer

I think if you do ID instead of Id, then you're not following conventions and code-first won't know what to map unless you specify with a [ForeignKey("ClientID")] attribute, etc etc.

But boilerplate takes care of Ids for you if your data model inherits from Entity<long>, I'm pretty sure. Why not do that?

I figured out the issue -- we need to have at least 1 tenant.

When I had the issue, I was getting No Results even on a simple _userRepository.GetAllList() which made no sense since I had multiple users in that table.

I went ahead and created a single Tenant in the tenant table with Id = 1 and now I'm setting all my Users to have TenantId = 1.

Worked after that.

I'm getting the same error. Can't seem to figure this one out.

Showing 21 to 29 of 29 entries