Is it possible to change the moodle Administrator Email and Smtp from code editor, not the GUI? I´ve been researching and trying by my own but still not having any reault. Thanks in advance!
You can update DB records, in example:
$admin = $DB->get_record('user',['email'=>'oldadminemail#mail.com']);
$admin->email = 'newadminemail#mail.com';
$DB->update_record('user',$admin);
More information can be found here: https://docs.moodle.org/dev/Data_manipulation_API
Related
I was hoping someone could help.
I need to somehow force local users to change passwords on the first of every month.
I've looked at PS and not found a way to set this flag.
Nor a way of adding this into GPO via PS.
If someone who is a PS guru can help I'd be very appreciative.
Cheers CM
EDITED!!
https://community.spiceworks.com/topic/2089854-script-to-create-local-users-on-workstation
As per the above link we can change its expiry to true and next time user must change the password
$expUser = [ADSI]"WinNT://localhost/$user,user"
$expUser.passwordExpired = 1
$expUser.setinfo()
The user 'USER' will asked to change the password
When a user updates his profile (email) I want that the username gets updated too.
I didn't find the configuration to achieve it.
Thank you!
You could use the option fillEmailWithUsername for this, see the docs of femanager.
I'm wondering how to extract text from a password protected website using Matlab's "webread" function. I have the following code (part of which i got from here):
values=inputdlg({'Url','Username:','Password'});
options=weboptions('Username',values{2},'Password',values{3},'Timeout',Inf);
html=webread(values{1},options);
txt = regexprep(html,'<script.*?/script>','');
txt = regexprep(txt,'<style.*?/style>','');
txt = regexprep(txt,'<.*?>','');
But it gets stuck at the login window for every webpage I've tried. Help? Ideas? Thanks.
The weboptions username and password parameters are for basic HTTP authentication, which is different than logging into Stack Exchange, Gmail, etc though the username and password boxes on a web page.
Some sites provide other mechanisms that might allow you to log in (like OAuth), and the File Exchange has a smattering of clients.
Here is an OAuth interface for login into the flicker using Matlab, maybe it help you. but you have to be sure that your website support this authentification method (as "Matt Krause" mentioned in his answer).
Link to Tutorial
I trying to setup a forwarder to forward all the mail send to exapmle*#mydomain.com to myaccount#gmail.com. We are using qmail. I trieed setting ".qmail-example*. But did not work.
can anyone help me on this .
Thank you.
in order to set a forwarder just add an entry at the end in .qmail file of user, which generally is present at users homepath, as:
&forwarder-id
It works I have been doing for last 10 years now... :-)
On Joomla! 2.5.4 I'm using the JomSocial 2.6.0 extension. Looking for the code that is sending the first registration notification email "welcome email containing username+password" so that I can remove it.
Currently there are two emails sent upon registration, the first which contains the username and password, second that contains the verification link. However I think that having two emails is totally unnecessary.. Thanks!
I found the code from com_community/controllers/register.php
$this->_sendEMail('registration_uncomplete', $tmpUser, $password);
Is it safe or a good idea to just null this?
//$this->_sendEMail('registration_uncomplete', $tmpUser, $password);
$var = NULL;
seems to be working...