Difference between revisions of "Action: Authenticate User"

m (Undo revision 1407 by JosueGd (talk))
Tag: Undo
Line 9: Line 9:
 
''''' Requires Root or [https://www.macrodroidforum.com/index.php?threads/adb-hack-granting-extra-capabilities-via-the-adb-tool.48/ ADB hack] '''''
 
''''' Requires Root or [https://www.macrodroidforum.com/index.php?threads/adb-hack-granting-extra-capabilities-via-the-adb-tool.48/ ADB hack] '''''
  
== About ==
+
==<p><b>Example</b></p>==
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
''''' When trying to access the notes application, it will require user authentication, if approved it will open the app, otherwise it will return to the home screen '''''
This action is used to set a toggleable quick setting tile to the on/off state. It can also be used to update the icon and label of the quick settings tile.
+
<br>
</pre><br/>
 
  
==<p><b>Configuration available</b></p>==
+
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 +
Triggers
  
''  Select a quick tile from the list (If you don't have any enabled, at the bottom there is a shortcut 'Configure quick settings tiles') on that screen you can configure / add the quick tile and add it to the notification bar, later you can return to the action to configure the quick tile in other situations. ''
+
Application Launched | Notes
 +
</pre><br>
  
=== Set toggle state  ===
+
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 +
Actions
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
Launch Home Screen
Switches the status of the quick tile between On and Off.
+
Authenticate User
</pre><br/>
+
</pre>
 +
 
 +
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
 +
If | CheckAuth = True
 +
</pre>
  
=== Set title ===
+
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 +
Actions
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
Launch Notes
Change the title that appears in the quick tile.
 
Supports use of magic text
 
 
</pre>
 
</pre>
* ''''' [https://macrodroidforum.com/wiki/index.php/Magic_text Magic Text] '''''
 
<br/>
 
  
===  Set subtitle ===
+
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
 +
Else
 +
</pre>
  
''Please be aware that not all device manufacturers support subtitles on their quick settings tiles.''
+
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
Actions
Select the directory where you want to create the new folder.
+
 
Then choose a name for the folder or use magic text.
+
Launch Home Screen
 +
Popup message | Incorrect password
 
</pre>
 
</pre>
* ''''' [https://macrodroidforum.com/wiki/index.php/Magic_text Magic Text] '''''
 
<br/>
 
  
=== Set icon ===
+
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
 +
End If
 +
</pre><br>
 +
 
 +
<pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;">
 +
Constraints
 +
 
 +
</pre><br>
 +
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 +
Local variables
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
CheckAuth = True
Change the current icon to one of the other icons included with macrodroid.
+
</pre><br>
</pre><br/>
 

Revision as of 20:23, 11 January 2024

About

This action can be used to request that the user authenticates their identity.

This action will set a boolean variable to indicate success/failure and subsequent actions will be blocked until authentication completes.

Requires Root or ADB hack

Example

When trying to access the notes application, it will require user authentication, if approved it will open the app, otherwise it will return to the home screen

Triggers

Application Launched | Notes


Actions

Launch Home Screen
Authenticate User
If | CheckAuth = True
Actions

Launch Notes
Else
Actions

Launch Home Screen
Popup message | Incorrect password
End If


Constraints


Local variables

CheckAuth = True