How to change font-awesome in Moodle? - frontend

I am using Moodle for the first time, I enabled email
self-registration as the user can signup.
I need to change the required icon which is created as font-awesome
from fa-exclamation-triangle to fa-asterisk.

Related

Why does the popup for b2c_1_edit_profile disappear?

I have b2c_1_susi working. I am able to login. I'm using example code. However edit profile user flow is not working. I have the user flow created in the same fashion as susi. If I use redirect my app navigates back to home page. If I use popup, the popup comes up but then disappears. This is what I am getting in the console log.
Strangely, I ended up deleting and recreating the registration and it started working.
Make sure you add user attributes to your edit profile. You may already have user attributes on your sign up sign in profile but they do not get transferred over to the edit profile automatically

Should I select a `Page Layout Version` when using `Custom page content` of Azure AD B2C User flows?

I'm trying to customize the Multifactor authentication page of a B2C User flows.
If I just modify the layout by adding my CSS & HTML then whether I should select a Page Layout Version or not? Because my CSS is based on the css-class or element-id (that is generated by Azure-AD-B2C). So, I'm afraid that those css-class / element-id can be changed in the future.
If I don't select the Page Layout Version, then whether the MFA behavior may be changed in the future?
The css-class or element-id generated by Azure-AD-B2C will generally not change. If it changes, you also need to change your custom CSS and HTML code, regardless of whether you choose the page layout version.
There are some behaviors changed about MFA page (multifactor) in page layout version 1.1.0. See details here.
'Confirm Code' button removed
The input field for the code now only takes input up to six (6)
characters
The page will automatically attempt to verify the code entered when a
6-digit code is entered, without any button having to be clicked
If the code is wrong, the input field is automatically cleared
After three (3) attempts with an incorrect code, B2C sends an error
back to the relying party
Accessibility fixes
Default CSS removed
If you don't select 1.1.0, the behaviors will keep on as 1.0.0.

Detecting if user came from whatsup/viber/skype

Is it possible to determine if a user came to your site by clicking a link shared in whatsup, viber or some other popular messenger?
They usually do send request to shared link so that they get metadata to display, and that can be determined through the user agent. However, when user actually clicks on link, unless messanger has browser built in, user agent is whatever browser they opened it in.
Using apache/nodejs/vuejs
Apparently, it is impossible. When a clicked link or programmatic request invokes a web URI intent, an OS allows the user to select an app from a dialog where it can be opened. So it doesn't add any additional information to the link while opening.
Probably make sense to consider generating unique links for every application so that you know where the user comes from.
https://hostname.com/home?userAgent=skype
https://hostname.com/home?userAgent=facebook

How to save user preferences?

We're developing a Gmail Addon to help internal staff to handle customers' email.
Our card widget will have a table with 2 column; first cell of every row will host, one or more domains, and the 2nd one will contains an editable text box with the default label that the addon will add to this user.
I'd like to allow user to change the default label, to adapt to his/her preferences and actual labelling method, adopted in some cases since years.
So the problem: how to save the user preferences, the user settings, of our addon only of course, but keeping related to user account? The goal is allow user to login with different devices and find the same settings
The sample Gmail add-ons projects that Google have published on Github should help you. In particular I've just found this Settings.js source file.
The core seems to be
var savedSettings = cachedPropertiesForUser_().get("settings", {});
But I've not used this in anger.

OrchardCMS Theme broken, need to get to the Dash

I have a broken site ATM and the theme layout is stuffed, I need to get to the dashboard by entering the direct link, does anyone have a sample that I can use.
Forced an update of the engine to the lastest version, and found that I needed to make changes to the user roles and configuration, made the changes in the database and got it working. What I found is that the user now needs to be part of a role, in the database made the change to the user giving them role ID of 1, this allowed me to go to the \admin page to get to the dashboard, from there I could reset to a default theme and get the site back up and running again

Resources