Orchard Lost Password Email template - orchardcms

I am trying to edit the email template of the lost password functionality of orchard. I can find the view where the default template is generated but when I change it nothing happens because as far as I can understand it is compiled in dll. Is there any way to change it?

Not sure what view you're referring to: the message cannot be changed currently without altering Orchard.Users.Handlers.UserMessageAlteration.Sending, unless you replace it with your own implementation and change the message from there.

Related

Create Mail-In Database using Standard Notes Mail Template

I am trying to create a Mail-In database for a new workflow application,
internal and external mail to arrive into a view which can be accessed by any member of the team, assigned reassigned, etc etc.
Attempt 1
I started with a blank canvas created a memo form, view, frame with preview etc, embedded another team calendar in the frame etc no problem until I started to try to implement basic functionality like forward and reply - with history. Forwarding my memo/mail with the history results in a copy of what becomes the ugly header in the new form. I needed it to be formatted like it is in a reply or forward of a Notes email ie like this.
Many hours later I could not figure out how the above has been achieved in Notes.
Attempt 2
Use the standard Notes 11 mail template and using the Notes message/memo form, add my bespoke view and frameset with preview etc. Nearly works, I get the neat history on Forward, however, on previewing the mail in my frameset the preview is pushed outside of my frame covering half of the other frames, it is unuseable. It seems like there is one form on top of another, ie this is apparent when opening the mail, adding a green background to the form is only visible on Edit. Again after hours and hours of searching through code and subforms, I cannot find the cause of it. I have established though if I open my client in basic mode, ie. nlnotes then it works perfectly.
So several questions all related, am I going about it the right way. I would like to use the mail template as a lot of what I need is built in, but I need to view that database in basic mode whilst in a standard eclipse notes client, ie stop it trying to open whatever it is trying to open in the eclipse version.
Or is there a better way, ie to generate the neat From: To: history in Forwarded and Replied to emails.
I will also want any replies to be from the group email address rather then the individual user, I haven't got to that yet so I am not sure if it is a problem.
I have seen the Open NTF Team Mail project, but that is 10 years out of date, so I felt there would be more advantage in trying to use the existing mail template.
Hope that makes sense.
Any help would be greatly appreciated.
Thanks
I suggest to create a new mail-in database and give it the right mail-template. Sometimes an application gets a hick-up and the application can't implement the template correctly. Or because of your previous tries there are design parts which shouldn't be there.
Is this the first time you create a mail-in database? Are all template elements signed correctly? Did you check the ACL, too?

Docusign Switch to New

The Docusign "Switch to New" from classic view is not taking any template changes that are made using the new view.
I have modified the template fields using the same account, still i am unable to see the changes reflected using the new view.
However if i use the classc view and am making any changes the template changes are visible.
Please suggest.
Yes, The template changes done in the new experience is not reflecting at all. It is saying no permission, but I am able to modify the template using the classic view.
I think it works for simple templates but does not work in case there is heavy configuration done on the template using the docusign preferences menu where the signature and css are being modified.

System.UI.Web.ScriptManager is not allowed on this page. The type is not registered as safe error in SharePoint

I've been getting an error in SharePoint that reads:
System.Web.UI.ScriptManager is not allwoed on this page. The type is not registered as safe.
I googled around, and the results pointed to missing AJAX server extension installations while using the asp:scriptManager tag. However upon closer inspection of my project, there was no findings of such tag. Whats even more strange, was that after I reinstall/reset the masterpage, the error went away and I was able to read my site again.
I was wondering whether the above error would appear if certain SharePoint files gets overriden? Or are there other less obvious/non-trivial reasons for it?
Thanks.
When it comes to the error, it is very likely related to your custom masterpage is not including the tag itself but it has a control or code that requires and/or inserts the tag.
Example: it is a common practice to code a custom webpart or usercontrol in order to insert the ScriptManager under the forms tag programatically in case one isn't present, and once this custom code hooks the page render with the ScriptManager, it will check for whether it is allowed in web.config -- thus you get the error.
SharePoint's web.config does not comes with Ajax enabled. Telerik has a good tutorial on that.

SharePoint Custom Web Part With Active Directory

I am currently working on a custom SharePoint web part (WSS 3.0, not MOSS) that will pull in information for all of the users in Active Directory to build an up to date employee directory. This web part shows things like phone number, address, and other similar fields. The issue that I am having is that, by default, the SharePoint web site on IIS is running as the user IUSR_. This user does not have access to Active Directory, so I am unable to retrieve any user information.
To get around this for testing I have hard coded the credentials for a test user which I added just for this purpose. This, obviously, is not ideal. If anyone removes this user or if they ever change the password then the web part will break and they will have no way to fix it (they have no in-house developers to take it over once I am finished here). To fix this problem, I would like to make the Username/Password custom properties on the web part so I can pass those to Active Directory to retrieve the information I need. The issue I am having with this is that the password is stored in plain text so anyone can read it. I would like it to display as ******** or something similar. Is there a way to make a custom property on a web part a password type?
If this isn't possible, can anyone recommend another way to accomplish what I am trying to do? At this time I cannot change the user that the SharePoint website runs as. Although, if I cannot find any other solutions I will try again to persuade them.
Thanks in advance!
We use a service account for that. That service account is solely used for that. Something like DOMAIN\SPS_AD_READ_CUSTOMER
In our documentation that we deliver when putting the application in production that account is put in the list of stuff that is needed to make the webpart run. If the webpart ever fails, the ITPro can go to the chapter and check if everything is still ok.
It's not ideal, but I don't really know another way on how to fix it.
I would go with custom Editor Part, then set up a control of TextBox with property TextBoxMode set to Password, then override methods from type EditorPart - SynchChanges() and ApplyChanges() to set and retrieve values.
tip: override method CreateEditorParts of a WebPart type to start with.

What's the best way to report errors from a SharePoint workflow?

I have a custom action in a workflow and would like to report an error to the user when something goes wrong. What's the best way of doing that?
UPD: Ideally I would like to put the workflow in the error state and log a message to the workflow log. That doesn't seem possible. What's the closest I can get to it? I want to a reusable solution,something that's easy for users to set up when using my custom action in SharePoint Designer.
Added more details to the question.
#mauro that takes care of storing the error, but how do I display the error to the user in a way which makes sense?
#AdamSane That's seems like a rather fragile solution. It's not a matter of setting this up once on a single site. I need something others can add using SPD.
when you throw the error your error handler can then email the user, or better if the list is massive, add the error state to the workflow item - i think this is default functionality though as the error would be mentioned there.
http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/fault-handling-in-sharepoint-workflows/
Personally I would log it to either a log file or the event log depending on the issue. I think storing it using a users permissions would be a bad idea, what happens if that user does not have the correct rights? or worse still they get elevated permissions by browsing the list in explorer view?
The log file would be the best way, that way you rely only on the file system being available - you dont have to worry about trapping errors happening whilst connecting to the database etc.
Mauro
Add the error to a hidden list with that users name. Set the visibility on the list (for users) to only read/write their own values. Then use a custom web part or FlexListViewer to view the contents of that list and display it to the user. Once they acknowledge that error, remove it from the list.
If necessary, you can add a different workflow action on that message list, that says pause for 2 days and then email. Whatever, depending on your requirements.
Otherwise you can have a custom db table that you use for pretty much the same thing, this way sharepoint does most of the work for you.
Update This can be packaged up as a feature and deployed to each site as needed. The strengths of this approach (adding a list item to a list, querying, alerting a user, and emailing a user) are all built into the sharepoint itself. In this case you can focus on your custom logic only, while letting sharepoint focus on the implementation details.
If you need the user to take some action as a result of the error (e.g. retrying the workflow) is it possible to create a task for that user with information on the error and the location of the workflow?

Resources