https://discord.umbraco.com
Join Discord
Member VerifyUserTokenAsync
g

gad2359

over 1 year ago
Hey there! I'm using Umbraco 12 and I wanted to provide a "forgot password" mechanism to frontend members. I'm currently asking for the e-mail to get the MemberIdentityUser member and then using the MemberManager.GeneratePasswordResetTokenAsync(member) to get the token. I then encode it and send the e-mail with the encoded token. After clicking the link in the e-mail, a controller is called with the encoded token and the user. A token validation is performed using MemberManager.VerifyUserTokenAsync(member, _options.Tokens.PasswordResetTokenProvider, UserManager.ResetPasswordTokenPurpose, token) I've also tried MemberManager.VerifyUserTokenAsync(member, "Default", "ResetPassword", token) Both return false. I've debugged it and can confirm the token sent (before encoding) matches the received token. What am I missing here? Thank you 🙂
g
d
+2
  • 4
  • 11
  • 231
Umbraco + AppInsights
c

Chad

10 months ago
Does anyone have this fully working, including Exceptions being logged? We seem to be hitting a scenario whereby the actual Exception details are not being sent to AppInsights (but the 500 response is being logged).
c
d
j
  • 3
  • 10
  • 228
[Resolved] I'm getting a 403 error trying to run Umb 14 in IIS
h

huwred

11 months ago
Any thoughts as to what I may have missed? App Pool user currently has full control on the folder, I have setup countless .netcore websites and never had this problem before.
h
a
m
  • 3
  • 17
  • 227
Making 2FA Mandatory for Admin Users
p

pdqumbraco

over 1 year ago
Hi All, I've implemented 2FA as specified here - https://docs.umbraco.com/umbraco-cms/reference/security/two-factor-authentication#login-with-2fa-enabled, I just wondering if it's possible to enforce this so back office users have to use 2FA to sign in, rather than it being optional. Thanks
p
s
+5
  • 7
  • 9
  • 226
Best practice to hide connection string password
c

Conner

over 1 year ago
Hi, new to umbraco and wondering how we can hide the connection string in appsettings.json? Is it possible to be loaded from .env? I have googled quite a bit but can't find anything around the topic really.
c
d
  • 2
  • 12
  • 226
[Solved] How to use CSP Manager w/ Nonce
d

Danine Noble

about 1 year ago
Hullo all ^^ I'm fiddling with this super helpful lil' package: https://marketplace.umbraco.com/package/umbraco.community.cspmanager Never done anything with nonce and barely any CSP experience, but I'm trying to follow the Nonce instructions on the Repo (https://github.com/Matthew-Wise/Umbraco-CSP-manager). Simply adding the Tag Helper and then adding the provided snippet doesn't do anything. Does anyone have experience with this package that can help point me in the right direction for what I'm missing? Done some Googlin' but not sure what this package doesn't handle. Tried adding some 'nonce-' to the CSP source but no luck.
d
m
  • 2
  • 15
  • 222
Preview Mode with Headless
s

Sebastian Pierre

9 months ago
We're working on a headless solution where the frontend is a sveltekit app that fetches data from Umbraco. We've used the Headless Preview-plugin to enable previewing content and it works fine, but it basically just redirects you to your headless solution, which means you lose all the fancy functionality that allows you to view your preview in different viewports. When inspecting the normal preview-mode in Umbraco there seems to be a simple iframe that shows the page. Is it possible to override this iframe url to show the headless frontend instead to keep the functionality?
s
j
b
  • 3
  • 8
  • 219
Examine indexes need to be rebuilt regularly
d

Dan

about 1 year ago
Hi, I'm working on a v13 site which has around 10k content nodes. It has a news search facility on the front-end which uses Examine and separately its Content Delivery API also powers a third-party app. We're finding that both the news search (which relies on the 'out of the box' External examine index) and the Content Delivery API keep failing to yield any results after 'a few days'. Logging into the CMS and rebuilding the indexes fixes it, but that's not a viable long-term solution. I wondered if anyone knows what might be causing the indexes to be dropped and/or if there's a way they can be automatically set to rebuild, periodically? The site is hosted on the client's own Windows VM — it's a decent spec AFAIK but it is used to host several sites. Could it be a memory issue? (Although I thought indexes were written to disk so that might not be too relevant?) Any pointers gratefully received!
d
j
  • 2
  • 1
  • 217
[Solved] Umbraco Forms Submit Always Refreshes Page
d

Danine Noble

about 1 year ago
I'm hitting a wall on where to look and could use another brain to throw suggestions on where I've gone wrong or what sort of place I could look for a conflict. I've got forms [using Umbraco Forms package] that should be showing a message on submit but instead all forms are reloading the page when they're submitted. There is no go-to page set, I can't see any issues in the console, network tab, or in Logs. Am I missing some setup? I have the 'RenderUmbracoFormDependencies(Url)' at the bottom of the head and am using the 'umb-forms-render-scripts' tag at the bottom of the body. As far as I can tell that's all that's required for setup? There is no other validation stuff or jquery or anything setup. Literally just installed & put those two snippets into the layout. Using the supplied 'insert form' data type and copy-paste of the RenderForm snippet from documentation. @await Component.InvokeAsync("RenderForm", new { formId = content.DisplayForm, includeScripts = false }) *tested with & without includeScripts just in case and it changes nothing.
d
s
d
  • 3
  • 11
  • 208
Smidge error: A bundle with the name:umbraco-backoffice-non-optimized-css could not be found
s

Simon (SimonAntony)

about 1 year ago
Umbraco 13.3.2 - i've added smidge bundling to the front end of a new site i'm building, all works fine. However the back office now gives me this error: Smidge.BundleNotFoundException: A bundle with the name:umbraco-backoffice-non-optimized-css could not be found. at Smidge.SmidgeHelper.GenerateBundleUrlsAsync(String bundleName, String fileExt, Boolean debug) at Smidge.SmidgeHelper.GenerateCssUrlsAsync(String bundleName, Boolean debug) at Smidge.SmidgeHelper.CssHereAsync(String bundleName, Boolean debug) at Umbraco.Cms.Web.Common.RuntimeMinification.SmidgeRuntimeMinifier.RenderCssHereAsync(String bundleName) at AspNetCoreGeneratedDocument.umbraco_UmbracoLogin_Index.<>c__DisplayClass24_0.<b__0>d.MoveNext() Why would this be? I just can't get past this unless I remove the smidge code. Tried searching and nothing comes up so a little stumped at the moment. Any ideas? I'm not touching any back office packages or setup - followed the initial details from @CodeSharePaul post on https://codeshare.co.uk/blog/how-to-set-up-smidge-properly-in-umbraco/
s
  • 1
  • 1
  • 208
Previous789Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by